Skip to content

Commit

Permalink
DIGITAL-158: Keep branch the real value, but use wildcard to set space.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsqd committed Jan 3, 2025
1 parent 3439ed5 commit a7670f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/cloudgov-deploy-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ jobs:
- name: Set enviornment
run: |
BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)
if [[ $BRANCH == *deploydev ]]; then
BRANCH="develop"
fi
COMPOSER_DEV=1
GSA_AUTH_KEY=${{ secrets.GSA_AUTH_DEVELOPMENT_KEY }}
case ${BRANCH} in
develop)
develop | *deploydev)
CF_SPACE="dev"
DRUPAL_MEMORY=${{ vars.DEVELOP_CMS_MEMORY }}
DRUPAL_INSTANCES=${{ vars.DEVELOP_INSTANCES }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/terraform-deploy-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ jobs:
- name: Set env.BRANCH
run: |
BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)
if [[ $BRANCH == *deploydev ]]; then
BRANCH="develop"
fi
case ${BRANCH} in
develop)
develop | *deploydev)
CF_SPACE="dev"
;;
main)
Expand Down

0 comments on commit a7670f5

Please sign in to comment.