Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 8b17ecf

Browse files
authored
Use authenticated Docker pulls (#869)
1 parent 6e32543 commit 8b17ecf

File tree

1 file changed

+71
-6
lines changed

1 file changed

+71
-6
lines changed

.circleci/config.yml

Lines changed: 71 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ jobs:
33
percy-finalize:
44
docker:
55
- image: percyio/agent
6+
auth:
7+
username: dashautomation
8+
password: $DASH_PAT_DOCKERHUB
69
steps:
710
- run: percy finalize --all
811

912
lint-unit-37: &lint-unit
1013
working_directory: ~/project
1114
docker:
1215
- image: circleci/python:3.7.6-stretch-node-browsers
16+
auth:
17+
username: dashautomation
18+
password: $DASH_PAT_DOCKERHUB
1319
environment:
1420
PYTHON_VERSION: py37
1521
steps:
@@ -44,20 +50,29 @@ jobs:
4450
<<: *lint-unit
4551
docker:
4652
- image: circleci/python:3.6.9-stretch-node-browsers
53+
auth:
54+
username: dashautomation
55+
password: $DASH_PAT_DOCKERHUB
4756
environment:
4857
PYTHON_VERSION: py36
4958

5059
lint-unit-27:
5160
<<: *lint-unit
5261
docker:
5362
- image: circleci/python:2.7-stretch-node-browsers
63+
auth:
64+
username: dashautomation
65+
password: $DASH_PAT_DOCKERHUB
5466
environment:
5567
PYTHON_VERSION: py27
5668

5769
build-dash-37: &build-dash
5870
working_directory: ~/project
5971
docker:
6072
- image: circleci/python:3.7.6-stretch-node-browsers
73+
auth:
74+
username: dashautomation
75+
password: $DASH_PAT_DOCKERHUB
6176
environment:
6277
PYTHON_VERSION: py37
6378
steps:
@@ -99,20 +114,29 @@ jobs:
99114
<<: *build-dash
100115
docker:
101116
- image: circleci/python:3.6.9-stretch-node-browsers
117+
auth:
118+
username: dashautomation
119+
password: $DASH_PAT_DOCKERHUB
102120
environment:
103121
PYTHON_VERSION: py36
104122

105123
build-dash-27:
106124
<<: *build-dash
107125
docker:
108126
- image: circleci/python:2.7-stretch-node-browsers
127+
auth:
128+
username: dashautomation
129+
password: $DASH_PAT_DOCKERHUB
109130
environment:
110131
PYTHON_VERSION: py27
111132

112133
test-37: &test
113134
working_directory: ~/project
114135
docker:
115136
- image: circleci/python:3.7.6-stretch-node-browsers
137+
auth:
138+
username: dashautomation
139+
password: $DASH_PAT_DOCKERHUB
116140
environment:
117141
PYTHON_VERSION: py37
118142
PERCY_PARALLEL_TOTAL: -1
@@ -145,6 +169,9 @@ jobs:
145169
<<: *test
146170
docker:
147171
- image: circleci/python:3.6.9-stretch-node-browsers
172+
auth:
173+
username: dashautomation
174+
password: $DASH_PAT_DOCKERHUB
148175
environment:
149176
PYTHON_VERSION: py36
150177
PERCY_ENABLE: 0
@@ -153,6 +180,9 @@ jobs:
153180
<<: *test
154181
docker:
155182
- image: circleci/python:2.7-stretch-node-browsers
183+
auth:
184+
username: dashautomation
185+
password: $DASH_PAT_DOCKERHUB
156186
environment:
157187
PYTHON_VERSION: py27
158188
PERCY_ENABLE: 0
@@ -161,6 +191,9 @@ jobs:
161191
working_directory: ~/project
162192
docker:
163193
- image: circleci/python:3.7.6-stretch-node-browsers
194+
auth:
195+
username: dashautomation
196+
password: $DASH_PAT_DOCKERHUB
164197
environment:
165198
PYTHON_VERSION: py37
166199
PERCY_PARALLEL_TOTAL: -1
@@ -195,13 +228,19 @@ jobs:
195228
<<: *test-legacy
196229
docker:
197230
- image: circleci/python:3.6.9-stretch-node-browsers
231+
auth:
232+
username: dashautomation
233+
password: $DASH_PAT_DOCKERHUB
198234
environment:
199235
PYTHON_VERSION: py36
200236
PERCY_ENABLE: 0
201237
test-legacy-27:
202238
<<: *test-legacy
203239
docker:
204240
- image: circleci/python:2.7-stretch-node-browsers
241+
auth:
242+
username: dashautomation
243+
password: $DASH_PAT_DOCKERHUB
205244
environment:
206245
PYTHON_VERSION: py27
207246
PERCY_ENABLE: 0
@@ -210,37 +249,63 @@ workflows:
210249
version: 2
211250
python3.7:
212251
jobs:
213-
- lint-unit-37
214-
- build-dash-37
252+
- lint-unit-37:
253+
context:
254+
- dash-docker-hub
255+
- build-dash-37:
256+
context:
257+
- dash-docker-hub
215258
- test-37:
259+
context:
260+
- dash-docker-hub
216261
requires:
217262
- build-dash-37
218263
- test-legacy-37:
264+
context:
265+
- dash-docker-hub
219266
requires:
220267
- build-dash-37
221268
- percy-finalize:
269+
context:
270+
- dash-docker-hub
222271
requires:
223272
- test-37
224273
- test-legacy-37
225274

226275
python3.6:
227276
jobs:
228-
- lint-unit-36
229-
- build-dash-36
277+
- lint-unit-36:
278+
context:
279+
- dash-docker-hub
280+
- build-dash-36:
281+
context:
282+
- dash-docker-hub
230283
- test-36:
284+
context:
285+
- dash-docker-hub
231286
requires:
232287
- build-dash-36
233288
- test-legacy-36:
289+
context:
290+
- dash-docker-hub
234291
requires:
235292
- build-dash-36
236293

237294
python2.7:
238295
jobs:
239-
- lint-unit-27
240-
- build-dash-27
296+
- lint-unit-27:
297+
context:
298+
- dash-docker-hub
299+
- build-dash-27:
300+
context:
301+
- dash-docker-hub
241302
- test-27:
303+
context:
304+
- dash-docker-hub
242305
requires:
243306
- build-dash-27
244307
- test-legacy-27:
308+
context:
309+
- dash-docker-hub
245310
requires:
246311
- build-dash-27

0 commit comments

Comments
 (0)