Skip to content

Commit dac651d

Browse files
author
jakubk
committed
tst+fix: do not save empty tar.gz file + use fastest gzip compression
- Previously, an empty tar.gz file was created on containers 1-3 to avoid errors when persisting to workspace. Container 0 saves the Docker images to tar.gz, but the empty tar.gz file would sometimes overwrite the tar.gz with the Docker images. Consequently, the deploy step would try to load Docker images from an empty tar.gz file and would fail. - To avoid errors on `persist_to_workspace`, save docker/* instead of docker/nipype-base-latest-py36-py27.tar.gz.
1 parent eaef0b2 commit dac651d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.circleci/config.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,13 @@ jobs:
137137
docker save nipype/nipype:base \
138138
nipype/nipype:latest \
139139
nipype/nipype:py36 \
140-
nipype/nipype:py27 | gzip -6 > /tmp/docker/nipype-base-latest-py36-py27.tar.gz
140+
nipype/nipype:py27 | gzip -1 > /tmp/docker/nipype-base-latest-py36-py27.tar.gz
141141
du -h /tmp/docker/nipype-base-latest-py36-py27.tar.gz
142-
else
143-
# Workaround for `persist_to_workspace` to succeed when we are
144-
# not deploying Docker images.
145-
touch /tmp/docker/nipype-base-latest-py36-py27.tar.gz
146142
fi
147143
- persist_to_workspace:
148144
root: /tmp
149145
paths:
150-
- docker/nipype-base-latest-py36-py27.tar.gz
146+
- docker/*
151147

152148

153149
deploy:

0 commit comments

Comments
 (0)