feat: added support for custom tags #175
Merged
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.
Goal
This PR is aimed at adding support for publishing multiple image tags. This makes use of the existing feature-set provided by upstream
ko-build/ko
through the usage of the--tags
flag.cf. https://github.com/ko-build/ko/blob/0dcace336cc5f723150d77487dbaf56f849cc361/docs/reference/ko_build.md?plain=1#L62
By adding this functionality one is then able to avoid having to collide with an existing
stable
tag which is always namedlatest
. This also opens the door for the usage ofsemver
.What changed?
tags
schema field that takes a list of strings. If not provided, backwards compatibility is maintained by defaulting to the usage of thelatest
tag.TestAccResourceKoBuild_Tags
to assert that new functionality works as expected and backwards compatibility is maintained.Tests
Example usage