Skip to content

Commit

Permalink
Fix build tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kruse committed Apr 2, 2024
1 parent 413198d commit 89f431b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/v}
fi
#if this is a branch, use the branch name instead
if [[ $GITHUB_REF == refs/heads/* ]]; then
VERSION=${GITHUB_REF#refs/heads/}
fi
TAGS="${DOCKER_IMAGE}:${VERSION}"
#TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest,${DOCKER_IMAGE}:${SHORTREF}"
# TAGS="${DOCKER_IMAGE}:latest"
echo ::set-output name=tags::${TAGS}
echo ::set-output name=docker_image::${DOCKER_IMAGE}
Expand Down

0 comments on commit 89f431b

Please sign in to comment.