Skip to content

Commit

Permalink
feat: make feature branch host configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
jackd248 committed Nov 13, 2024
1 parent 5d8353a commit a5da4b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions deploy/deploy-feature-rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ deploy:feature:rollback:
- .base-deploy
- .base-deploy-feature
- .feature-branches
variables:
DEPLOYER_CONFIG_FEATURE_BRANCH_HOST: stage
script:
- !reference [.check-deployment-dependencies, script]
# rollback feature
- ${PATH_CI_DIR}/vendor/bin/dep deploy:unlock stage --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
- ${PATH_CI_DIR}/vendor/bin/dep rollback stage --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
- ${PATH_CI_DIR}/vendor/bin/dep deploy:unlock $DEPLOYER_CONFIG_FEATURE_BRANCH_HOST --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
- ${PATH_CI_DIR}/vendor/bin/dep rollback $DEPLOYER_CONFIG_FEATURE_BRANCH_HOST --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
when: manual
5 changes: 3 additions & 2 deletions deploy/deploy-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ deploy:feature:
- build:node
variables:
DEPLOYER_CONFIG_DATABASE_PASSWORD: $DB_PASSWORD_STAGE
DEPLOYER_CONFIG_FEATURE_BRANCH_HOST: stage
script:
- !reference [.check-deployment-dependencies, script]
# deploy feature
- ${PATH_CI_DIR}/vendor/bin/dep deploy:unlock stage --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
- ${PATH_CI_DIR}/vendor/bin/dep deploy stage --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
- ${PATH_CI_DIR}/vendor/bin/dep deploy:unlock $DEPLOYER_CONFIG_FEATURE_BRANCH_HOST --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
- ${PATH_CI_DIR}/vendor/bin/dep deploy $DEPLOYER_CONFIG_FEATURE_BRANCH_HOST --feature=$CI_COMMIT_REF_NAME $DEPLOYER_CONFIG_ADDITIONAL_OPTION
environment:
on_stop: deploy:feature:stop
auto_stop_in: 3 months
Expand Down

0 comments on commit a5da4b0

Please sign in to comment.