Skip to content

Commit

Permalink
Fixed image tags based on major and minor versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Oct 5, 2022
1 parent c3f8ea2 commit c92f076
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-baseimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ jobs:
# For version with format vX.Y.Z, we want to add additional tags:
# - vX.Y
# - vX
MINOR=${VERSION%.*}
MAJOR=${MINOR%.*}
TAGS="$TAGS,${{ env.DOCKER_IMAGE_NAME }}:${{ fromJSON(matrix.info).tag_prefix }}-v${MAJOR}.${MINOR}"
V=${VERSION:1}
MAJOR_MINOR=${V%.*}
MAJOR=${MAJOR_MINOR%.*}
TAGS="$TAGS,${{ env.DOCKER_IMAGE_NAME }}:${{ fromJSON(matrix.info).tag_prefix }}-v${MAJOR_MINOR}"
TAGS="$TAGS,${{ env.DOCKER_IMAGE_NAME }}:${{ fromJSON(matrix.info).tag_prefix }}-v${MAJOR}"
fi
# Determine the release type.
Expand Down

0 comments on commit c92f076

Please sign in to comment.