Allow building docker manifests having empty template values #5822
Closed
zerospiel
started this conversation in
Ideas, Issue Triage, and General discussions
Replies: 1 comment 1 reply
-
|
Yeah it should probably skip it! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to build a new configuration for my CI, and I'd like to keep everything within a single config file instead of producing boilerplates. Having that said, I am struggling to implement something close to a conditional expression within the
docker_manifestspackage section, having the following (simplified/trimmed).goreleaser.yaml:So, here at the last lines, I have a list with
ifs, what I want to achieve is to skip creating a manifest from non-existent digests (because the images fromdockerswill be skipped due to setidssection, which is done on purpose), but unfortunately, the current implementation does not skip empty image names after evaluating a template name.Hence, my question is: am I doing it wrong, or is it worth adding an extra
ifstatement to the line of code mentioned above?Would appreciate any tips!
Beta Was this translation helpful? Give feedback.
All reactions