Open kylewallpe opened 2 years ago
Hey @kylewallpe from looking at the logic of the plugin, if autotag is true, then user set tags are ignored. drone-manifest/main.go at 92722b712a4a378262ca8f3e39e34248646c8a7b · drone-plugins/drone-manifest · GitHub Can you confirm
Hi @tphoney. According to the docs, auto_tags
defaults to false
anyway. But even with both auto_tags
and default_tags
explicitly set to false
in the pipeline definition, the behavior is the same.
The docs for the manifest plugin list tags as an optional setting for manifest (not spec) mode. And in spec mode, a
.tags
file is read, and populates tags.My expectation would be that either of these would add onto the list of tags specified by the target setting in manifest mode. However, it seems both tags setting and .tags file are ignored in manifest mode.
Example sanitized .drone.yml:
I’ve also tried generating a .tags file for the
publish manifest.publish
step. The results are the same either way:The additional tags are not pushed to our docker registry.
Originally posted at https://community.harness.io/t/manifest-plugin-tags-setting-tags-file-have-no-effect/12178