Skip to content

Commit

Permalink
Update production workflow to use dockerize too
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Nov 14, 2023
1 parent 8282840 commit 52310ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ jobs:
run: |
export GIT_SHA=${{ steps.extract_variables.outputs.GIT_SHA_SHORT }}
export GIT_TAG=${{ steps.extract_variables.outputs.TAG }}
wget https://github.com/jwilder/dockerize/releases/download/v0.6.0/dockerize-linux-amd64-v0.6.0.tar.gz
tar -xzvf dockerize-linux-amd64-v0.6.0.tar.gz
rm dockerize-linux-amd64-v0.6.0.tar.gz
./dockerize -template prod-eu-west/services/levriero/_levriero.auto.tfvars.tmpl:prod-eu-west/services/levriero/_levriero.auto.tfvars
export VERSION_FILENAME=prod-eu-west/services/levriero/_levriero.auto.tfvars
sed -e "s/{{ .Env.GIT_SHA }}/$GIT_SHA/g" -e "s/{{ .Env.GIT_TAG }}/$GIT_TAG/g" $VERSION_FILENAME.tmpl > $VERSION_FILENAME
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add prod-eu-west/services/levriero/_levriero.auto.tfvars
git add $VERSION_FILENAME
git commit -m "Adding levriero git variables for tag ${{ steps.extract_variables.outputs.GIT_TAG }}"
- name: Push changes
uses: ad-m/[email protected]
Expand Down

0 comments on commit 52310ad

Please sign in to comment.