From c15f70cf471d677736f746a0cf6240c9ec03531f Mon Sep 17 00:00:00 2001 From: Fethbita Date: Sun, 6 Oct 2024 22:40:26 +0300 Subject: [PATCH] Fix github.sha env var --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0b6a867..30e102c 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -25,7 +25,7 @@ jobs: with: context: . push: true - tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:$GITHUB_SHA + tags: ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ github.sha }} - if: github.ref_name != github.event.repository.default_branch name: Build and push @@ -33,4 +33,4 @@ jobs: with: context: . push: true - tags: ghcr.io/${{ github.repository }}:$GITHUB_SHA + tags: ghcr.io/${{ github.repository }}:${{ github.sha }}