Skip to content

Commit

Permalink
chore: update circleci to use new docker auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jrconlin committed Oct 19, 2020
1 parent bf5f232 commit 0c25f7b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
version: 2
version: 2.1
defaults:
docker_login: &docker_login
run:
name: Login to Dockerhub
command: |
if [ "${DOCKER_USER}" == "" ] || [ "${DOCKER_PASS}" == "" ]; then
echo "Skipping Login to Dockerhub, no credentials."
else
echo "${DOCKER_PASS}" | docker login -u="${DOCKER_USER}" --password-stdin
fi
jobs:
build:
docker:
- image: circleci/python
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
steps:
- checkout
- setup_remote_docker
Expand Down

0 comments on commit 0c25f7b

Please sign in to comment.