-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|