Skip to content

Commit

Permalink
fixing sha environment variable in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariemeth committed Mar 31, 2024
1 parent 284a702 commit c16e3d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
IMAGE_NAME: edwardcarmack/gearforce-web
SHA: $("${{ github.sha }}" | cut -c1-7)
SHA: ""

jobs:
# Push image to GitHub Packages.
Expand All @@ -35,7 +35,10 @@ jobs:
# Use Docker `latest` tag convention
[ "$VERSION" == "main" ] && VERSION=latest
IMAGE_TAGS="$IMAGE_NAME:$VERSION,$IMAGE_NAME:${{env.SHA}}"
SHA=${{ github.sha }} | cut -c1-7)
echo "SHA=$SHA" >> "$GITHUB_ENV"
IMAGE_TAGS="$IMAGE_NAME:$VERSION,$IMAGE_NAME:$SHA"
echo "IMAGE_TAGS=$IMAGE_TAGS" >> "$GITHUB_ENV"
Expand Down

0 comments on commit c16e3d1

Please sign in to comment.