mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Correct config
This commit is contained in:
parent
4c0061b758
commit
aa5d2faaeb
@ -1,4 +1,3 @@
|
|||||||
# Configure CircleCI
|
|
||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -21,16 +20,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- run:
|
|
||||||
command:
|
|
||||||
echo 'if [ ${CIRCLE_BRANCH} = master ]; then DOCKER_TAG=latest else DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}} fi; export DOCKER_TAG' >> $BASH_ENV
|
|
||||||
- run:
|
- run:
|
||||||
command:
|
command:
|
||||||
docker load < /tmp/workspace/docker-backuppc.tar
|
docker load < /tmp/workspace/docker-backuppc.tar
|
||||||
- deploy:
|
- deploy:
|
||||||
command: |
|
command: |
|
||||||
DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}
|
if [ ${CIRCLE_BRANCH} = master ]; then DOCKER_TAG=latest; else DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}; fi
|
||||||
echo ${DOCKER_TAG}
|
docker tag adferrand/backuppc adferrand/backuppc:${DOCKER_TAG}
|
||||||
|
docker push adferrand/backuppc:${DOCKER_TAG}
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build-n-deploy:
|
build-n-deploy:
|
||||||
|
Loading…
Reference in New Issue
Block a user