aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-10-17 14:24:54 +0200
committerGitHub <noreply@github.com>2020-10-17 14:24:54 +0200
commite3da1ed2455676cfe31757cbd816d92ee1d93a3c (patch)
treef0ae892ebccdb8c6e77699266de2d68f847f5e8c
parent379c5f39fc5452fa9c77da34005e8fd4134dbb45 (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.
-rw-r--r--.circleci/config.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index cbab45baef1..8a6807f79a7 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -3,7 +3,13 @@ jobs:
codestyle_and_sql:
docker:
- image: trinitycore/circle-ci:3.3.5-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: ''
@@ -33,6 +39,9 @@ jobs:
pch:
docker:
- image: trinitycore/circle-ci:3.3.5-buildpacks-focal
+ auth:
+ username: $DOCKERHUB_USERNAME
+ password: $DOCKERHUB_PASSWORD
steps:
- run:
name: Checkout
@@ -64,6 +73,9 @@ jobs:
nopch:
docker:
- image: trinitycore/circle-ci:3.3.5-buildpacks-focal
+ auth:
+ username: $DOCKERHUB_USERNAME
+ password: $DOCKERHUB_PASSWORD
steps:
- run:
name: Requirements