Skip to content

Conversation

@pablosproject
Copy link
Contributor

Tries to solve #140. By default this action adds the tag of the current branch and also add the latest tag to the latest image pushed.

It should also add the commit sha as a tag, useful to get a specific commit image (in case of regression, etc).
Try and see if it can work for the project. Otherwise we can customize tags using the rules here https://github.com/docker/metadata-action#usage.

I tried on my end by logging out the output and all seems to be working fine.

@guysoft guysoft merged commit c81cd35 into guysoft:devel Sep 13, 2021
@guysoft
Copy link
Owner

guysoft commented Sep 13, 2021

Looks like its working, but I need to test the tags.

@pablosproject
Copy link
Contributor Author

Ok, let me know if I can help with that.

@guysoft
Copy link
Owner

guysoft commented Nov 16, 2021

@pablosproject Hey qustion -
if the branch is master, is there a way to append the tag latest to llabels: ${{ steps.docker_meta.outputs.labels }}?
Can't find anywhere how to do that

@pablosproject
Copy link
Contributor Author

Yes, you need to add a custom input to the action using the flavor input. As for default configuration, it's generated automatically every time you push a tag, no matter the branch.

Otherwise, you need to write your own custom naming strategy, not sure how to do that. For my use cases the default strategy is the most logical.

@guysoft
Copy link
Owner

guysoft commented Nov 17, 2021

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

Successfully merging this pull request may close these issues.

2 participants