-
I have a pipeline building and publishing an image of my application, e.g. myapp:1.0.2. The porter.yaml file will need the tag/digest value updated to allow the image to be added to the porter bundle when porter build/publish is ran. I do not see how to accomplish this with the porter CLI as you cannot pass parameters into the porter build/publish commands. Does the Porter CLI allow for setting the image tag/digest when running Thanks, Mike |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
We are working on adding build argument support for the v1 release (in #1789, #1769 and #1124). Until that's implemented, you will need to use tools like sed to edit the porter.yaml as a stopgap measure. Once it is in place you should be able to use this:
name: mybundle
custom:
myimageDigest: "sha256:85b1a9b4b60a4cf73a23517dad677e64edf467107fa7d58fce9c50e6a3e4c914" # default digest to use
images:
myimage:
description: "A simple web service"
imageType: "docker"
repository: "jeremyrickard/devops-days-msp"
digest: "{{bundle.custom.myimageDigest}}" |
Beta Was this translation helpful? Give feedback.
We are working on adding build argument support for the v1 release (in #1789, #1769 and #1124). Until that's implemented, you will need to use tools like sed to edit the porter.yaml as a stopgap measure.
Once it is in place you should be able to use this:
porter build --custom myimageDigest sha256:abc123