Skip to content
Discussion options

You must be logged in to vote

Quick answer

Implicitly via tags input, set priority above all defaults:

type=sha,enable=${{ github.event_name == 'push' }},priority=999

Be explicit:

# Image config stores labels:
labels: |
  org.opencontainers.image.revision=sha-${{ github.sha }}

# Image index/manifest annotations are useful for queries/filters when interacting with a registry:
annotations: |
  org.opencontainers.image.revision=sha-${{ github.sha }}

Long answer

This is an easy mistake (I've made it myself), but it is actually explained in the docs (just easy to miss), it's due to the action assigning priority values to different types which will sort your tags by priority and the first tag processed (enabled) from tha…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@felipecrs
Comment options

Answer selected by felipecrs
Comment options

You must be logged in to vote
1 reply
@felipecrs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants