-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update production workflow to use dockerize too
- Loading branch information
1 parent
8282840
commit 52310ad
Showing
1 changed file
with
5 additions
and
5 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 |
---|---|---|
|
@@ -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] | ||
|