File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 8181
8282aws ecr get-login-password --region " eu-west-1" | docker login --username AWS --password-stdin 268558157000.dkr.ecr.eu-west-1.amazonaws.com
8383
84- # log in to quay.io for the mongodb/mongodb-search-community private repo
85- # TODO remove once we switch to the official repo in Public Preview
86- quay_io_auth_file=$( mktemp)
87- docker_configjson_tmp=$( mktemp)
88- echo " ${COMMUNITY_PRIVATE_PREVIEW_PULLSECRET_DOCKERCONFIGJSON} " | base64 -d > " ${quay_io_auth_file} "
89- jq -s ' .[0] * .[1]' " ${quay_io_auth_file} " ~ /.docker/config.json > " ${docker_configjson_tmp} "
90- mv " ${docker_configjson_tmp} " ~ /.docker/config.json
91- rm " ${quay_io_auth_file} "
84+ if [[ -n " ${COMMUNITY_PRIVATE_PREVIEW_PULLSECRET_DOCKERCONFIGJSON:- } " ]]; then
85+ # log in to quay.io for the mongodb/mongodb-search-community private repo
86+ # TODO remove once we switch to the official repo in Public Preview
87+ quay_io_auth_file=$( mktemp)
88+ docker_configjson_tmp=$( mktemp)
89+ echo " ${COMMUNITY_PRIVATE_PREVIEW_PULLSECRET_DOCKERCONFIGJSON} " | base64 -d > " ${quay_io_auth_file} "
90+ jq -s ' .[0] * .[1]' " ${quay_io_auth_file} " ~ /.docker/config.json > " ${docker_configjson_tmp} "
91+ mv " ${docker_configjson_tmp} " ~ /.docker/config.json
92+ rm " ${quay_io_auth_file} "
93+ fi
9294
9395create_image_registries_secret
You can’t perform that action at this time.
0 commit comments