Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
roelbroersma authored Jun 7, 2024
1 parent 7d869f8 commit dd67a38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,14 @@ jobs:
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

# Tag Image as :latest (for use with Synology, Portainer and others who standard use :latest)
- name: Debug: Print available tags
run: echo "Available tags: ${{ steps.meta.outputs.tags }}"

- name: Tag image as latest
if: ${{ github.event_name != 'pull_request' }}
run: |
TAG=$(echo ${{ steps.meta.outputs.tags }} | cut -d ',' -f 1 | cut -d ':' -f 2)
echo "Tag to be used: ${TAG}"
docker images
docker tag ${{ env.IMAGE_NAME }}:${TAG} ${{ env.IMAGE_NAME }}:latest
docker push ${{ env.IMAGE_NAME }}:latest

0 comments on commit dd67a38

Please sign in to comment.