mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Simplify script
This commit is contained in:
parent
14b7221d2a
commit
f9651328bd
@ -27,14 +27,10 @@ jobs:
|
||||
- run:
|
||||
command:
|
||||
docker load < /tmp/workspace/docker-backuppc.tar
|
||||
- run:
|
||||
command:
|
||||
docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
|
||||
- run:
|
||||
command:
|
||||
docker tag adferrand/backuppc adferrand/backuppc:${DOCKER_TAG}
|
||||
- deploy:
|
||||
command:
|
||||
command: |
|
||||
if [ ${CIRCLE_BRANCH} = master ]; then DOCKER_TAG=latest else DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}} fi
|
||||
docker tag adferrand/backuppc adferrand/backuppc:${DOCKER_TAG}
|
||||
docker push adferrand/backuppc:${DOCKER_TAG}
|
||||
workflows:
|
||||
version: 2
|
||||
|
Loading…
Reference in New Issue
Block a user