Skip to content

Commit a9c170a

Browse files
committed
CI: Do not save docker images pointlessly
1 parent a06530e commit a9c170a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,18 +277,20 @@ jobs:
277277
- store_artifacts:
278278
path: /home/circleci/work/docs
279279
- run:
280-
name: Save Docker images to workspace
280+
name: Save Docker images to workspace if on master
281281
no_output_timeout: 60m
282282
command: |
283+
if [ "$CIRCLE_BRANCH" = "master" -a -z "$CIRCLE_PULL_REQUEST" ]; then
283284
docker save nipype/nipype:base \
284285
nipype/nipype:latest \
285286
nipype/nipype:py27 \
286287
nipype/nipype:py36 | gzip -1 > /tmp/docker/nipype-base-latest-py36-py27.tar.gz \
287288
&& du -h /tmp/docker/nipype-base-latest-py36-py27.tar.gz
289+
fi
288290
- persist_to_workspace:
289291
root: /tmp
290292
paths:
291-
- docker/*
293+
- docker
292294

293295
deploy:
294296
docker:

0 commit comments

Comments
 (0)