Replies: 1 comment
-
Mmmmh that's a good question and I don't find a good answer today. I tried multiple time in the past to allow different exit code per resource and globally for the pipeline. I keep this issue #233 to remind myself that I would like to go back to that area. Another option would be to improve the Updatecli json plugin to not fail on missing keys, I am not a big fan of solving this problem at the JSON level as I think it's a global issue. Since the json plugin relies on https://github.com/TomWright/dasel maybe there is a way to craft a query that wouldn't fail. I think the short answer would be to move your pipeline to a dedicated manifest so it doesn't affect your other manifest, but I understand that it wouldn't be an ideal solution. Today Updatecli executes for each pipeline in sequence, all sources, then all conditions, then all targets. Once all pipelines have been processed, it runs all actions. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
My build tool emits a JSON file containing the name and image of the release container images, and I'm trying to hook this up to updatecli to then propaget the image to a set of Dockerfiles.
My issue is that the JSON file won't always contain the specific key(s) I'm interested in, e.g. if the image wasn't built as part of that release.
I can't work out how to tell updatecli that it's fine and it should just skip the target.
For context, the JSON file is a skaffold build output file, e.g.:
My updatecli YAML looks like:
When the
example
key is present it all works as expected, but when it's not it gives the obvious error:How do I just turn this into a no-op. Having updatecli fail means any other configs or targets won't get updated and makes the CI config complicated.
Beta Was this translation helpful? Give feedback.
All reactions