diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index cc74d82..ff0b77a 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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 -