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
|
||||
jobs:
|
||||
build:
|
||||
@ -21,16 +20,14 @@ jobs:
|
||||
steps:
|
||||
- attach_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:
|
||||
command:
|
||||
docker load < /tmp/workspace/docker-backuppc.tar
|
||||
- deploy:
|
||||
command: |
|
||||
DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}
|
||||
echo ${DOCKER_TAG}
|
||||
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
|
||||
build-n-deploy:
|
||||
|
Loading…
Reference in New Issue
Block a user