Skip to content

Commit b8cc9ff

Browse files
committed
Add Docker HUB auth into CircleCI config
Starting November 1, Docker Hub expects users to log in for pulling images. After this date, some anonymous pulls will be rate-limited by IP address. Adding authentication to avoid potential issues that which result from the above.
1 parent 62419cd commit b8cc9ff

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.circleci/config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ jobs:
33
lint:
44
docker:
55
- image: ubuntu:focal
6+
auth:
7+
username: $DOCKERHUB_USERNAME
8+
password: $DOCKERHUB_TOKEN
69
resource_class: small
710
steps:
811
- run:
@@ -25,6 +28,9 @@ jobs:
2528
setup:
2629
docker:
2730
- image: crops/poky:latest
31+
auth:
32+
username: $DOCKERHUB_USERNAME
33+
password: $DOCKERHUB_TOKEN
2834
resource_class: small
2935
working_directory: /tmp/job/project
3036
steps:
@@ -47,6 +53,9 @@ jobs:
4753
MACHINE: << parameters.machine >>
4854
CACHE_DIR: /tmp/job/sstate-cache
4955
CACHE_URI: https://fb-openbmc-sstate.s3.us-east-2.amazonaws.com
56+
auth:
57+
username: $DOCKERHUB_USERNAME
58+
password: $DOCKERHUB_TOKEN
5059
resource_class: xlarge
5160
working_directory: /tmp/job/project
5261
steps:
@@ -69,8 +78,14 @@ workflows:
6978
everything:
7079
jobs:
7180
- lint
81+
context:
82+
- DOCKERHUB_TOKEN
7283
- setup
84+
context:
85+
- DOCKERHUB_TOKEN
7386
- build:
87+
context:
88+
- DOCKERHUB_TOKEN
7489
requires:
7590
- setup
7691
matrix:

0 commit comments

Comments
 (0)