From e00d30a109d426db83da1073388c88a9ca179665 Mon Sep 17 00:00:00 2001 From: Zordrak Date: Tue, 19 Dec 2023 14:57:44 +0000 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c8c26ee..b9f94f7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,12 +39,12 @@ jobs: with: context: . load: true - tags: "tfenv-terraform:${{ github.head_ref }}" + tags: "tfenv-terraform:${{ github.sha }}" - name: 'Check Dockerfile' if: contains(matrix.os, 'ubuntu') run: | expect=1.2.3; - got="$(docker run -e "TFENV_TERRAFORM_VERSION=${expect}" "tfenv-terraform:${{ github.head_ref }}" version)"; + got="$(docker run -e "TFENV_TERRAFORM_VERSION=${expect}" "tfenv-terraform:${{ github.sha }}" version)"; echo "${got}" | tee /dev/stderr | grep -e 'Terraform v1.2.3' # When we push to master, test everything in order to guarantee releases