Fix missing latest tag causing Portainer deploy failure

docker-compose pulls :latest but the workflow only pushed branch-name
tags (e.g. :main) and SHA tags -- never :latest. Portainer stacks
reported "manifest unknown" when trying to pull the image.

Add type=raw,value=latest scoped to the default branch so pushes to
main now also tag the image as :latest.
This commit is contained in:
2026-03-12 13:51:04 -06:00
parent dab0932c89
commit a52244af39
+1
View File
@@ -36,6 +36,7 @@ jobs:
with: with:
images: ${{ env.IMAGE_NAME }} images: ${{ env.IMAGE_NAME }}
tags: | tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch type=ref,event=branch
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}