Skip to content

Commit 97b4048

Browse files
author
jakubk
committed
fix path when updating dockerfile cache
1 parent 9e0571c commit 97b4048

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,10 @@ jobs:
126126
no_output_timeout: 60m
127127
command: |
128128
if [ "$CIRCLE_NODE_INDEX" -eq "0" ]; then
129-
echo "Saving Docker images to tar.gz files ..."
130129
docker save kaczmarj/nipype:base \
131130
kaczmarj/nipype:latest \
132131
kaczmarj/nipype:py36 \
133132
kaczmarj/nipype:py27 > /tmp/docker/nipype-base-latest-py36-py27.tar
134-
echo "$(du -h /tmp/docker/nipype-base-latest-py36-py27.tar)"
135133
fi
136134
- persist_to_workspace:
137135
root: /tmp
@@ -143,7 +141,8 @@ jobs:
143141
docker:
144142
- image: docker:17.09.0-ce-git
145143
steps:
146-
- checkout
144+
- checkout:
145+
path: /home/circleci/nipype
147146
- setup_remote_docker
148147
- attach_workspace:
149148
at: /tmp
@@ -163,8 +162,9 @@ jobs:
163162
docker push kaczmarj/nipype:py27
164163
- run:
165164
name: Prune base Dockerfile to update cache
165+
working_directory: /home/circleci/nipype/docker
166166
command: |
167-
cd /home/circleci/nipype/docker
167+
mkdir -p /tmp/docker
168168
# Use the sha256 sum of the pruned Dockerfile as the cache key.
169169
ash prune_dockerfile.sh Dockerfile.base > /tmp/docker/Dockerfile.base-pruned
170170
- save_cache:

0 commit comments

Comments
 (0)