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:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
docker pull adferrand/backuppc || true
|
docker pull adferrand/backuppc || true
|
||||||
docker build -t --cache-from adferrand/backuppc adferrand/backuppc .
|
docker build --cache-from adferrand/backuppc -t adferrand/backuppc .
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
mkdir -p workspace
|
mkdir -p workspace
|
||||||
@ -24,6 +24,9 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
command:
|
command:
|
||||||
docker load < /tmp/workspace/docker-backuppc.tar
|
docker load < /tmp/workspace/docker-backuppc.tar
|
||||||
|
- run:
|
||||||
|
command:
|
||||||
|
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
|
||||||
- deploy:
|
- deploy:
|
||||||
command: |
|
command: |
|
||||||
if [ ${CIRCLE_BRANCH} = master ]; then DOCKER_TAG=latest; else DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}; fi
|
if [ ${CIRCLE_BRANCH} = master ]; then DOCKER_TAG=latest; else DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user