Skip to content

Commit

Permalink
chore: update docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1230 committed May 23, 2024
1 parent 3774c77 commit 44108fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/turbo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
echo "REPO=${GITHUB_REPOSITORY@L}" >> "$GITHUB_OUTPUT"
echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
echo "REPO_URL=https://github.com/${{ github.repository }}" >> "$GITHUB_OUTPUT"
echo "IMAGE_TAG=${{ github.ref == 'refs/heads/main' && 'latest' || github.sha }}" >> "$GITHUB_OUTPUT"
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')
echo "IMAGE_TAG=$( [ "${{ github.ref }}" = 'refs/heads/main' ] && echo 'latest' || echo $BRANCH_NAME )" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 44108fb

Please sign in to comment.