Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This closes #17 by adding a
non-semver-tags
argument. If that argument is given any value, the docker/metadata-action gets the additional docker tag formattype=match,pattern=v(.*),group=1
. That tag format will ensure that any git tag of the formvX
will result in a docker tag of the formX
.I tested this with my trusty docker-internal-tests repository. When I had this workflow...
... and tagged it as
v0.0.5c
, the workflow ran successfully and pushed the corresponding tag.Note
As you can see I technically used the
dev
branch and notnwiltsie-arg-for-non-semver
, but that's just to make future testing with that repository easier. The workflow logs show that it used 87e99e2.When I removed the argument and tagged it as
v0.0.5d
, it failed with the error from #17.Closes #17
Checklist
.png
, .jpeg
),.pdf
,.RData
,.xlsx
,.doc
,.ppt
, or other non-plain-text files. To automatically exclude such files using a .gitignore file, see here for example.main
branch protection rule following the github standards before opening this pull request.CHANGELOG.md
under the next release version or unreleased, and updated the date.