Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker HUB auth into CircleCI config #139

Open
wants to merge 1 commit into
base: helium
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ jobs:
lint:
docker:
- image: ubuntu:focal
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
resource_class: small
steps:
- run:
Expand All @@ -25,6 +28,9 @@ jobs:
setup:
docker:
- image: crops/poky:latest
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
resource_class: small
working_directory: /tmp/job/project
steps:
Expand All @@ -47,6 +53,9 @@ jobs:
MACHINE: << parameters.machine >>
CACHE_DIR: /tmp/job/sstate-cache
CACHE_URI: https://fb-openbmc-sstate.s3.us-east-2.amazonaws.com
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_TOKEN
resource_class: xlarge
working_directory: /tmp/job/project
steps:
Expand All @@ -68,9 +77,12 @@ workflows:
version: 2
everything:
jobs:
- lint
- setup
- lint:
context: DOCKERHUB_TOKEN
- setup:
context: DOCKERHUB_TOKEN
- build:
context: DOCKERHUB_TOKEN
requires:
- setup
matrix:
Expand Down