mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Login to docker
This commit is contained in:
parent
a4758b6417
commit
6b4b32e0f2
@ -7,7 +7,7 @@ jobs:
|
||||
- run:
|
||||
command: |
|
||||
docker pull adferrand/backuppc || true
|
||||
docker build -t --cache-from adferrand/backuppc adferrand/backuppc .
|
||||
docker build --cache-from adferrand/backuppc -t adferrand/backuppc .
|
||||
- run:
|
||||
command: |
|
||||
mkdir -p workspace
|
||||
@ -24,6 +24,9 @@ jobs:
|
||||
- run:
|
||||
command:
|
||||
docker load < /tmp/workspace/docker-backuppc.tar
|
||||
- run:
|
||||
command:
|
||||
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
|
||||
- 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