From 9ece9957ca67c3480ed53d4434b10d2725bd35d1 Mon Sep 17 00:00:00 2001 From: jmcudd Date: Wed, 16 Oct 2024 09:54:24 -0400 Subject: [PATCH] Exec image wiring (#3238) * Example on how to wire an image via exec mixin Signed-off-by: John Cudd * Small tweak to naming Signed-off-by: John Cudd --------- Signed-off-by: John Cudd --- docs/content/docs/references/examples/airgap.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/content/docs/references/examples/airgap.md b/docs/content/docs/references/examples/airgap.md index 6adae2149..d944649ac 100644 --- a/docs/content/docs/references/examples/airgap.md +++ b/docs/content/docs/references/examples/airgap.md @@ -85,6 +85,20 @@ Porter handles tracking the image location for you, just use the template variab [images]: /docs/bundle/manifest/#images +If using exec mixin, image digests can be passed via environmental variables or arguments. + +```yaml +install: + - exec: + description: "Insall WhaleGap" + command: ./porter-scripts.sh + arguments: + - install + envs: + IMAGE_whalesayd: "${ bundle.images.whalesayd.repository }@${ bundle.images.whalesayd.digest }" +``` + + ## Move the bundle across the airgap Let's simulate moving the bundle across an airgap by publishing the bundle to a different registry.