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:
@@ -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}}
|
||||||
|
|||||||
Reference in New Issue
Block a user