This repository was archived by the owner on Sep 6, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ ENV PATH /google-cloud-sdk/bin:$PATH
2929RUN gcloud components install beta
3030RUN gcloud components install alpha
3131
32+ RUN curl -fsSL https://github.com/mikefarah/yq/releases/download/v4.12.2/yq_linux_amd64 -o /usr/local/bin/yq \
33+ && chmod +x /usr/local/bin/yq
34+
3235WORKDIR /gitpod
3336
3437COPY . /gitpod
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SHELL=/bin/bash -o pipefail -o errexit
66IMG =ghcr.io/gitpod-io/gitpod-gke-guide:latest
77
88build : # # Build docker image containing the required tools for the installation
9- @docker build --quiet . -t ${IMG}
9+ @docker build --squash -- quiet . -t ${IMG}
1010
1111DOCKER_RUN_CMD = docker run -it \
1212 --volume $$HOME/.config/gcloud:/root/.config/gcloud \
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33set -eo pipefail
4-
4+ set -x
55DIR=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd -P)
66if [ ! -f " ${DIR} /.env" ]; then
77 echo " Missing ${DIR} /.env configuration file."
@@ -32,7 +32,7 @@ WORKSPACES_POOL="workload-workspaces"
3232
3333GKE_VERSION=${GKE_VERSION:= " 1.20.8-gke.900" }
3434
35- GITPOD_VERSION=${GITPOD_VERSION:= " aledbf-mk3.55 " }
35+ GITPOD_VERSION=${GITPOD_VERSION:= " aledbf-mk3.68 " }
3636
3737function check_prerequisites() {
3838 if [ -z " ${PROJECT_NAME} " ]; then
@@ -369,6 +369,11 @@ function install() {
369369 --from-file=.dockerconfigjson=" ${IMAGE_PULL_SECRET_FILE} " \
370370 --type=kubernetes.io/dockerconfigjson > /dev/null 2>&1 || true
371371 fi
372+
373+ yq e -i ' .components.imageBuilderMk3.registry.secretName = "gitpod-image-pull-secret"' " ${DIR} /charts/assets/gitpod-values.yaml"
374+ else
375+ # ensure the chart installation does not fail without a secret.
376+ yq e -i ' .components.imageBuilderMk3.registry = {}' " ${DIR} /charts/assets/gitpod-values.yaml"
372377 fi
373378
374379 install_cert_manager
You can’t perform that action at this time.
0 commit comments