From a7473f1a91e8498938d4f57956e3344d7fc52d0c Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Sat, 17 Oct 2020 14:24:54 +0200 Subject: CI/CircleCI: Authenticate to DockerHub when pulling the docker image (#25581) For more information see the following links: - https://www.docker.com/blog/scaling-docker-to-serve-millions-more-developers-network-egress/ - https://docs.docker.com/docker-hub/download-rate-limit/ - https://circleci.com/docs/2.0/private-images/ Add DOCKERHUB_USERNAME and DOCKERHUB_PASSWORD secrets to CircleCI Environment Variables. DOCKERHUB_PASSWORD can be either the password or an access token. (cherry picked from commit e3da1ed2455676cfe31757cbd816d92ee1d93a3c) --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e527eb8d02..d7c23375cf2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,13 @@ jobs: codestyle_and_sql: docker: - image: trinitycore/circle-ci:master-buildpacks-focal + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_PASSWORD - image: circleci/mysql:8 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_PASSWORD environment: MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_ROOT_PASSWORD: '' @@ -39,6 +45,9 @@ jobs: pch: docker: - image: trinitycore/circle-ci:master-buildpacks-focal + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_PASSWORD steps: - run: name: Checkout @@ -70,6 +79,9 @@ jobs: nopch: docker: - image: trinitycore/circle-ci:master-buildpacks-focal + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_PASSWORD steps: - run: name: Requirements -- cgit v1.2.3