Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VOTE-2530-2531: add approvals to some post deploy steps in the pipeline #906

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ jobs:
cf install-plugin -f https://github.com/cloud-gov/cf-service-connect/releases/download/v1.1.3/cf-service-connect_linux_amd64
- run:
name: "Run downsync"
no_output_timeout: 30m
command: |
source ./scripts/pipeline/exports.sh "${BACKUP_ENV}"
source ./scripts/pipeline/cloud-gov-login.sh
Expand Down Expand Up @@ -212,6 +213,7 @@ jobs:
cf install-plugin -f https://github.com/cloud-gov/cf-service-connect/releases/download/v1.1.3/cf-service-connect_linux_amd64
- run:
name: "Run backup"
no_output_timeout: 30m
command: |
export BACKUP_ENV=${CIRCLE_BRANCH}
source ./scripts/pipeline/exports.sh "${CIRCLE_BRANCH}"
Expand All @@ -220,6 +222,7 @@ jobs:
./scripts/pipeline/scheduled_backup.sh "${prod_cf_space}"
- run:
name: "Run backup"
no_output_timeout: 30m
command: |
echo "I am the result of Run Backup failed job"
export BACKUP_ENV=${CIRCLE_BRANCH}
Expand Down Expand Up @@ -315,22 +318,40 @@ workflows:
- stage
requires:
- deploy
- post-deploy-upkeep:
- post-deploy-upkeep-approval:
filters:
branches:
only:
- test
- dev
- stage
type: approval
requires:
- post-deploy
- post-deploy-upkeep:
filters:
branches:
only:
- test
- dev
- stage
requires:
- post-deploy-upkeep-approval
- cypress-approval:
filters:
branches:
only:
- stage
type: approval
requires:
- post-deploy-upkeep
- cypress:
filters:
branches:
only:
- stage
requires:
- post-deploy-upkeep
- cypress-approval
deploy-prod-workflow:
when:
and:
Expand All @@ -348,9 +369,13 @@ workflows:
- post-deploy:
requires:
- deploy
- post-deploy-upkeep:
- post-deploy-upkeep-approval:
type: approval
requires:
- post-deploy
- post-deploy-upkeep:
requires:
- post-deploy-upkeep-approval
upkeep-workflow:
when:
and:
Expand Down Expand Up @@ -390,4 +415,4 @@ workflows:
- equal: [ test, << pipeline.parameters.restore >> ]
jobs:
- downsync