Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 44b9a48

Browse files
committed
Ensure the image builder secret is configured
1 parent 05544b6 commit 44b9a48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ function install_gitpod() {
227227
gsutil mb "gs://${CONTAINER_REGISTRY_BUCKET}"
228228
fi
229229

230+
if [ -n "${IMAGE_PULL_SECRET_FILE}" ] && [ -f "${IMAGE_PULL_SECRET_FILE}" ]; then
231+
yq e -i '.components.imageBuilderMk3.registry.secretName = "gitpod-image-pull-secret"' "${DIR}/charts/assets/gitpod-values.yaml"
232+
fi
233+
230234
envsubst < "${DIR}/charts/assets/gitpod-values.yaml" | helm upgrade --install gitpod gitpod/gitpod -f -
231235
}
232236

0 commit comments

Comments
 (0)