Skip to content

Commit

Permalink
Fix github.sha env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Fethbita committed Oct 6, 2024
1 parent dea7505 commit c15f70c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ 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
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 #v6.9.0
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:$GITHUB_SHA
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}

0 comments on commit c15f70c

Please sign in to comment.