diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index dcc9293..00b5c00 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -17,15 +17,14 @@ jobs: # list of Docker images to use as base name for tags images: | ghcr.io/${{ github.repository }} - # latest tag is only set for semver/tag-based builds (default behavior) - flavor: | - latest=auto # generate Docker tags based on the following events/attributes tags: | type=ref,event=branch type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} + # publish :latest from the default branch + type=raw,value=latest,enable={{is_default_branch}} - name: Login to GitHub Container Registry if: github.event_name != 'pull_request' uses: docker/login-action@v3