Only add tags when needed

Temporarily by line-by-line iffing them out.
This commit is contained in:
2025-11-02 17:43:10 +09:00
parent 9456f1065f
commit dc7950a1ec

View File

@@ -83,11 +83,9 @@ jobs:
with:
# This generates all the tags for your image, you can add custom tags here too!
tags: |
# set latest tag for main branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=${{ env.FEDORA_BASE }},enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=${{ env.FEDORA_BASE }}-{{date 'YYYYMMDD'}},enable=${{ github.ref == format('refs/heads/{0}', 'main' }}
type=raw,value=beta,enable=${{ github.ref != format('refs/heads/{0}', 'main') }}
type=raw,value=latest,enable=${{ github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=raw,value=${{ env.FEDORA_BASE }},enable=${{ github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=raw,value=${{ env.FEDORA_BASE }}-{{date 'YYYYMMDD'}},enable=${{ github.event_name != 'pull_request' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
type=sha,enable=${{ github.event_name == 'pull_request' }}
type=ref,event=pr
labels: |