From 06f61c31e3a9df6810c8c6ef7deebbc9cc721c88 Mon Sep 17 00:00:00 2001 From: Michael Richardson Date: Sun, 12 Nov 2023 17:00:56 +1000 Subject: [PATCH] let's go again --- .github/workflows/build-and-push-image.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push-image.yaml b/.github/workflows/build-and-push-image.yaml index 0c3d533..88c7a3e 100644 --- a/.github/workflows/build-and-push-image.yaml +++ b/.github/workflows/build-and-push-image.yaml @@ -59,9 +59,8 @@ jobs: id: image-tag run: | tag="${{ steps.branch-name.outputs.current_branch }}.${{ github.run_id }}" - echo "image=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$tag" >> ${GITHUB_ENV} - echo "tag=$tag" >> ${GITHUB_ENV} - echo "tag=$tag" + echo "image=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$tag" >> $GITHUB_ENV + echo "tag=$tag" >> $GITHUB_ENV - name: Login to GitHub Container Registry uses: docker/login-action@v3 @@ -78,7 +77,7 @@ jobs: with: context: . push: true - tags: ${{steps.image-tag.outputs.image}} + tags: ${{ env.tag }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max \ No newline at end of file