Skip to content

Commit 47b17f7

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
Add the additional images to the werft build
The `additionalImages` are used by KOTS to pull in any images used that are not defined in a manifest. These are then processed by KOTS and used to make the air-gapped bundle
1 parent d9666d8 commit 47b17f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.werft/jobs/build/publish-kots.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export async function publishKots(werft: Werft, config: JobConfig) {
1919
// Set the tag to the current version
2020
exec(`yq w -i ${REPLICATED_YAML_DIR}/gitpod-installer-job.yaml ${INSTALLER_JOB_IMAGE} ${image}:${config.version}`);
2121

22+
// Update the additionalImages in the kots-app.yaml
23+
exec(`/tmp/installer mirror kots --file ${REPLICATED_YAML_DIR}/kots-app.yaml`);
24+
2225
const app = exec(`kubectl get secret ${REPLICATED_SECRET} --namespace werft -o jsonpath='{.data.app}' | base64 -d`);
2326
const token = exec(`kubectl get secret ${REPLICATED_SECRET} --namespace werft -o jsonpath='{.data.token}' | base64 -d`);
2427

0 commit comments

Comments
 (0)