Compress artifacts

This commit is contained in:
Adrien Ferrand 2018-09-27 11:46:01 +02:00
parent 3a5126d6fd
commit f76cc5f0e5

View File

@ -43,11 +43,11 @@ jobs:
name: Save container name: Save container
command: | command: |
mkdir -p workspace mkdir -p workspace
docker save adferrand/backuppc > workspace/docker-backuppc.tar docker save adferrand/backuppc | gzip -c -1 > workspace/docker-backuppc.tar.gz
- persist_to_workspace: - persist_to_workspace:
root: workspace root: workspace
paths: paths:
- docker-backuppc.tar - docker-backuppc.tar.gz
deploy: deploy:
machine: true machine: true
steps: steps:
@ -56,7 +56,7 @@ jobs:
- run: - run:
name: Load container name: Load container
command: command:
docker load < /tmp/workspace/docker-backuppc.tar docker load < /tmp/workspace/docker-backuppc.tar.gz
- run: - run:
name: Login to DockerHub name: Login to DockerHub
command: command: