Skip to content

Commit

Permalink
Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
svogt0511 committed Dec 13, 2023
1 parent 219a67c commit 26bf647
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/_update_terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ jobs:
repository: 'datacite/mastino'
persist-credentials: false

- name: Setup dokerize and template parameters
- name: Setup dockerize and template parameters
# use go template in terraform config repository to update git sha and tag
# commit and push changes to trigger terraform workflow
run: |
export GIT_SHA=${{ steps.extract_variables.outputs.GIT_SHA_SHORT }}
export GIT_TAG=${{ steps.extract_variables.outputs.GIT_TAG }}
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
wget https://github.com/jwilder/dockerize/releases/download/v0.6.0/dockerize-linux-amd64-v0.6.0.tar.gz
Expand All @@ -48,13 +46,17 @@ jobs:
- name: Conditionally update staging environment
if: ${{ (inputs.deployment_environment == 'staging') }}
run: |
export GIT_SHA=${{ steps.extract_variables.outputs.GIT_SHA_SHORT }}
export GIT_TAG=${{ steps.extract_variables.outputs.GIT_TAG }}
./dockerize -template stage/services/mds/_poodle.auto.tfvars.tmpl:stage/services/mds/_poodle.auto.tfvars
git add stage/services/mds/_poodle.auto.tfvars
git commit -m "Adding poodle git variables for commit ${{ steps.extract_variables.outputs.GIT_SHA }}"
#- name: Conditionally update production/test environments
# if: ${{ (inputs.deployment_environment == 'production') }}
# run: |
# export GIT_SHA=${{ steps.extract_variables.outputs.GIT_SHA_SHORT }}
# export GIT_TAG=${{ steps.extract_variables.outputs.GIT_TAG }}
# ./dockerize -template prod-eu-west/services/mds/_poodle.auto.tfvars.tmpl:prod-eu-west/services/mds/_poodle.auto.tfvars
# ./dockerize -template test/services/mds/_poodle.auto.tfvars.tmpl:test/services/mds/_poodle.auto.tfvars
# git add prod-eu-west/services/mds/_poodle.auto.tfvars
Expand Down

0 comments on commit 26bf647

Please sign in to comment.