Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for additional documentation of priority #224

Closed
wholtz opened this issue Jul 27, 2022 · 2 comments · Fixed by #235
Closed

Request for additional documentation of priority #224

wholtz opened this issue Jul 27, 2022 · 2 comments · Fixed by #235

Comments

@wholtz
Copy link

wholtz commented Jul 27, 2022

Thank you for providing a very useful action.

I would like to see additional documentation about the priority attribute. The documentation that I can find on priority consists of:

priority=<number> priority to manage the order of tags

Some questions that could be clarified by additional documentation:

  1. In what context does priority impact ordering of tags? On https://hub.docker.com/? On other container registries? On the API results returned from https://hub.docker.com/v2/?
  2. Do smaller priority values result in being first or last in the resulting ordering?
@omBratteng
Copy link

I think some information in how priority affects the output of the action is needed.
Meanwhile I did some testing, with these settings:

tags: |
  type=sha,priority=100
  type=raw,priority=150,value=medium-priority
  type=raw,priority=200,value=higher-priority

I noticed that it affects the tag set in the image version and the order of which the tags are output. This way you can control the image version if you want to output several tags.

Docker image version
  higher-priority
Docker tags
  image/name:higher-priority
  image/name:medium-priority
  image/name:sha-643a62d
Docker labels
  org.opencontainers.image.version=higher-priority

@crazy-max
Copy link
Member

crazy-max commented Oct 7, 2022

I noticed that it affects the tag set in the image version and the order of which the tags are output.

Yes priority affects tags order so image version will be set based on the higher one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants