Auto latest behavior

This commit is contained in:
asonix 2024-02-08 17:57:50 -06:00
parent c855d6bb4c
commit 8708d72536

View file

@ -35,14 +35,12 @@ jobs:
with:
images: ${{ env.REGISTRY_IMAGE }}
flavor: |
latest=false
latest=auto
suffix=-${{ matrix.info.suffix }}
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
-
name: Set up QEMU
uses: https://github.com/docker/setup-qemu-action@v3
@ -110,13 +108,11 @@ jobs:
with:
images: ${{ env.REGISTRY_IMAGE }}
flavor: |
latest=false
latest=auto
tags: |
type=raw,value=latest,enable={{ is_default_branch }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=ref,event=branch
-
name: Create manifest list and push
working-directory: /tmp/digests