aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-10-17 14:24:54 +0200
committerShauren <shauren.trinity@gmail.com>2022-02-28 21:47:38 +0100
commita7473f1a91e8498938d4f57956e3344d7fc52d0c (patch)
tree75e76c22564def4d4de770dbedaefbc62d64f865
parent01a11ac27c59ae70fdd89e56d0bfce0977238506 (diff)
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)
-rw-r--r--.circleci/config.yml12
1 files changed, 12 insertions, 0 deletions
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