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

Feature request: Set individual outputs per input flag #46

Closed
andy-v-h opened this issue Feb 26, 2021 · 3 comments
Closed

Feature request: Set individual outputs per input flag #46

andy-v-h opened this issue Feb 26, 2021 · 3 comments

Comments

@andy-v-h
Copy link

andy-v-h commented Feb 26, 2021

Currently, the outputs.tags gives a list of all the tags that were pushed. It would be useful if when, for example, a tag-sha is true, there was an outputs.tag-sha to accompany it. This would enable later steps to use a particular tag.

The motivation for this is a building an image of an application and picking a particular tag to use for generating a PR to bump the image tag in a Helm chart values.yaml

@crazy-max

This comment has been minimized.

@crazy-max
Copy link
Member

All things considered I don't see how we could handle this behavior cause inputs from v1 have been merged to tags input in v2. Maybe you could use the version output which is the main tag. I'm closing this issue but feel free to leave a comment if you want a better alternative.

@cdeneen
Copy link

cdeneen commented Aug 10, 2021

I think this solves what you are trying to do. I think the tag list follows the meta tags list order so if you put your ref tag first...
${{ fromJson(steps.dockermeta.outputs.json).tags[0]

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

No branches or pull requests

3 participants