File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -338,9 +338,9 @@ spec:
338338 | base64 -d \
339339 > /tmp/gitpodregistry.json
340340
341-
342- DOCKER_CONFIG='{{repl ConfigOptionData "reg_docker_config" }}'
343- export REGISTRY_SECRET=$(cat "${DOCKER_CONFIG}" /tmp/gitpodregistry.json | jq -s '.[0] * .[1]' - - | base64 -w 0)
341+ DOCKER_CONFIG='{{repl ConfigOptionData "reg_docker_config" | Base64Encode }}'
342+ echo "${DOCKER_CONFIG}" | base64 -d > /tmp/userregistry.json
343+ export REGISTRY_SECRET=$(jq -s '.[0] * .[1]' /tmp/userregistry.json /tmp/gitpodregistry.json | base64 -w 0)
344344
345345 echo "Gitpod: update the in-cluster registry secret"
346346 yq eval-all --inplace '(select(.kind == "Secret" and .metadata.name == "builtin-registry-auth") | .data.".dockerconfigjson") |= env(REGISTRY_SECRET)' \
You can’t perform that action at this time.
0 commit comments