Skip to content

Commit

Permalink
Add the additional images to the werft build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Simon Emms authored and roboquat committed Apr 1, 2022
1 parent d9666d8 commit 47b17f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .werft/jobs/build/publish-kots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export async function publishKots(werft: Werft, config: JobConfig) {
// Set the tag to the current version
exec(`yq w -i ${REPLICATED_YAML_DIR}/gitpod-installer-job.yaml ${INSTALLER_JOB_IMAGE} ${image}:${config.version}`);

// Update the additionalImages in the kots-app.yaml
exec(`/tmp/installer mirror kots --file ${REPLICATED_YAML_DIR}/kots-app.yaml`);

const app = exec(`kubectl get secret ${REPLICATED_SECRET} --namespace werft -o jsonpath='{.data.app}' | base64 -d`);
const token = exec(`kubectl get secret ${REPLICATED_SECRET} --namespace werft -o jsonpath='{.data.token}' | base64 -d`);

Expand Down

0 comments on commit 47b17f7

Please sign in to comment.