2024-08-21 05:29:40 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2024-08-22 05:09:36 +00:00
|
|
|
name: default
|
2024-08-21 05:29:40 +00:00
|
|
|
|
|
|
|
steps:
|
2024-08-22 05:09:36 +00:00
|
|
|
- name: test
|
2024-08-21 05:29:40 +00:00
|
|
|
image: alpine
|
|
|
|
commands:
|
2024-08-22 05:09:36 +00:00
|
|
|
- echo "Testing..."
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- echo "Building..."
|
|
|
|
|
|
|
|
- name: deploy-staging
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- echo "Deploying to stage..."
|
|
|
|
|
|
|
|
- name: approval
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- echo "Awaiting manual approval for production deployment."
|
|
|
|
when:
|
2024-08-22 05:37:36 +00:00
|
|
|
# event:
|
|
|
|
# - push
|
2024-08-22 05:09:36 +00:00
|
|
|
status:
|
|
|
|
- success
|
|
|
|
|
|
|
|
- name: deploy-production
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- echo "Deploying to production..."
|
2024-08-21 05:45:04 +00:00
|
|
|
when:
|
2024-08-22 05:40:06 +00:00
|
|
|
# event:
|
|
|
|
# - push
|
2024-08-22 05:09:36 +00:00
|
|
|
status:
|
|
|
|
- success
|
2024-08-22 05:35:01 +00:00
|
|
|
depends_on:
|
|
|
|
- approval
|