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

Correct the tags output by the Docker metadata action #11

Conversation

drmrd
Copy link
Contributor

@drmrd drmrd commented Dec 6, 2023

Corrects the docker/metadata-action in our CI/CD workflow so that the tag in our .env file is used to label new Docker images.

Closes #12

@drmrd drmrd marked this pull request as ready for review December 6, 2023 14:23
@drmrd drmrd changed the title Correct the tags output from the Docker metadata action Correct the tags output by the Docker metadata action Dec 6, 2023
@drmrd
Copy link
Contributor Author

drmrd commented Dec 6, 2023

@shankari: This fix appears to be doing the trick. If you approve, feel free to merge.

Copy link
Collaborator

@shankari shankari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, I would not have expected this to work. type=semver appears to only be invoked on a push tag event

https://github.com/docker/metadata-action#typesemver

Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push) and requires a valid [semver](https://semver.org/) Git tag, but you can also use a custom value through value attribute.

However, I do see that it seems to work in the PR, so I will go ahead and merge optimistically.

If it doesn't work, I think you will:

  • need a type=ref and figure out how to pass in the value, or
  • manually tag the docker image instead of using the metadata action (for simplicity)
  • need to change our process to tag releases (which is not necessarily a bad thing)

@shankari shankari merged commit 2fa825c into EVerest:main Dec 6, 2023
4 checks passed
@drmrd drmrd deleted the hotfix/incorrect-docker-image-tags-being-pushed branch December 6, 2023 15:31
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.

🚑 Images being built by the CI/CD are being tagged with the branch instead of the version tag
2 participants