Skip to content

Commit

Permalink
ci(circle): authenticate Docker image pull [ch2767]
Browse files Browse the repository at this point in the history
  • Loading branch information
exactlyaron committed Oct 23, 2020
1 parent 475bfcf commit 3b96864
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ jobs:
unit test:
docker:
- image: cimg/node:lts
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
environment:
TZ: "Europe/London"
working_directory: ~/repo
Expand All @@ -28,6 +31,9 @@ jobs:
lint:
docker:
- image: cimg/node:lts
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
working_directory: ~/repo
steps:
- checkout
Expand All @@ -40,6 +46,9 @@ jobs:
release:
docker:
- image: cimg/node:lts
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
environment:
TZ: "Europe/London"
working_directory: ~/repo
Expand All @@ -63,14 +72,20 @@ workflows:
version: 2
test_and_release:
jobs:
- unit test:
context: tymly_global
- lint
- release:
context: tymly_global
requires:
- unit test
- lint
filters:
branches:
only: master
- unit test:
context:
- docker-hub-creds
- tymly_global
- lint:
context:
- docker-hub-creds
- release:
context:
- docker-hub-creds
- tymly_global
requires:
- unit test
- lint
filters:
branches:
only: master

0 comments on commit 3b96864

Please sign in to comment.