From 52310ad24cf19bf54763cbf1d7549d18e41f0b73 Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Tue, 14 Nov 2023 11:54:50 +0100 Subject: [PATCH] Update production workflow to use dockerize too --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5c92758..91eef98a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 "action@github.com" 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/github-push-action@v0.6.0