diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7636af41..76a94739 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,7 +49,7 @@ jobs: type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} type=ref,event=branch type=ref,event=tag - type=raw,value=${{github.head_ref}}-{{date 'YYYYMMDD'}}-{{sha}} + type=raw,value={{branch}}-{{date 'YYYYMMDD'}}-{{sha}},enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} flavor: | latest=false - name: Login to GitHub Container Registry