File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,12 @@ if [[ "${USE_PROD_DOCKER_CREDENTIALS:-}" == "true" ]]; then
9494 fi
9595fi
9696
97+ # Authenticate to the Docker Hub public read-only registry
9798if which docker > /dev/null 2>&1 ; then
9899 DOCKERHUB_REGISTRY_USERNAME=" $( vault read -field=username secret/ci/elastic-elasticsearch/docker_hub_public_ro_credentials) "
99100 DOCKERHUB_REGISTRY_PASSWORD=" $( vault read -field=password secret/ci/elastic-elasticsearch/docker_hub_public_ro_credentials) "
100101
101- docker login --username " $DOCKERHUB_REGISTRY_USERNAME " --password " $DOCKERHUB_REGISTRY_PASSWORD " docker.io
102+ echo " $DOCKERHUB_REGISTRY_PASSWORD " | docker login --username " $DOCKERHUB_REGISTRY_USERNAME " --password-stdin docker.io
102103fi
103104
104105if [[ " $BUILDKITE_AGENT_META_DATA_PROVIDER " != * " k8s" * ]]; then
You can’t perform that action at this time.
0 commit comments