Skip to content

Commit a53949b

Browse files
author
Konrad Michalik
authored
Merge pull request #4 from move-elevator/blocked-pipeline
refactor: update deployment YAML files to allow failure for manual actions to prevent "blocked" pipeline
2 parents 359c156 + b665c25 commit a53949b

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

deploy/deploy-feature-cleanup.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ deploy:feature:cleanup:
1313
- if: $CI_PIPELINE_SOURCE == "pipeline"
1414
when: never
1515
- if: $CI_COMMIT_REF_NAME =~ /$FEATURE_BRANCH_NAME_REGEX/
16+
when: manual
1617
- if: $CI_COMMIT_REF_NAME =~ /^feature-.*$/
17-
- if: $CI_COMMIT_REF_NAME == "main"
18+
when: manual
1819
variables:
1920
GIT_STRATEGY: none
2021
FEATURE_STOP_DOWNSTREAM_BRANCH: main
@@ -25,4 +26,4 @@ deploy:feature:cleanup:
2526
name: $CI_COMMIT_REF_NAME
2627
url: $ENVIRONMENT_URL
2728
action: stop
28-
when: manual
29+
allow_failure: true

deploy/deploy-feature-rollback.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ deploy:feature:rollback:
2424
- vendor/bin/dep deploy:unlock $DEPLOYER_CONFIG_FEATURE_BRANCH_HOST --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
2525
- vendor/bin/dep rollback $DEPLOYER_CONFIG_FEATURE_BRANCH_HOST --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
2626
when: manual
27+
allow_failure: true

deploy/deploy-prod-rollback.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ deploy:prod:rollback:
2222
- if: $CI_COMMIT_REF_NAME == "main"
2323
when: manual
2424
- when: never
25-
allow_failure: false
25+
allow_failure: true

sync/sync-feature.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ sync:feature:
3636
environment:
3737
name: $CI_COMMIT_REF_NAME
3838
url: $ENVIRONMENT_URL
39+
allow_failure: true

0 commit comments

Comments
 (0)