mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
More secure approach to docker login
This commit is contained in:
parent
6b4b32e0f2
commit
ac8a7b68ea
@ -26,7 +26,7 @@ jobs:
|
||||
docker load < /tmp/workspace/docker-backuppc.tar
|
||||
- run:
|
||||
command:
|
||||
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
|
||||
echo "${DOCKER_PASS}" | docker login -u ${DOCKER_USER} --password-stdin
|
||||
- deploy:
|
||||
command: |
|
||||
if [ ${CIRCLE_BRANCH} = master ]; then DOCKER_TAG=latest; else DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}; fi
|
||||
|
Loading…
Reference in New Issue
Block a user