Skip to content

Commit

Permalink
tag now considers current version and latest
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Markiewka <[email protected]>
  • Loading branch information
marekzan committed Oct 14, 2020
1 parent d79ff9d commit e6bbc81
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publishImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@ jobs:
GHCR_IMAGE=ghcr.io/${{ github.repository_owner }}/helm
VERSION=latest
TAGS="${GHCR_IMAGE}:${VERSION}"
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
TAGS="${TAGS},${GHCR_IMAGE}:${VERSION}"
fi
TAG="${GHCR_IMAGE}:${VERSION}"
echo ::set-output name=version::${VERSION}
echo ::set-output name=ghcr_image::${GHCR_IMAGE}
echo ::set-output name=tag::${TAG}
echo ::set-output name=tags::${TAGS}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -43,7 +45,7 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.prep.outputs.tag }}
tags: ${{ steps.prep.outputs.tags }}
-
name: Check manifest
run: |
Expand Down

0 comments on commit e6bbc81

Please sign in to comment.