File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ jobs:
149
149
environment :
150
150
TZ : " /usr/share/zoneinfo/America/Los_Angeles"
151
151
steps :
152
+ - checkout :
153
+ path : /tmp/src/sdcflows
152
154
- restore_cache :
153
155
keys :
154
156
- build-v2-{{ .Branch }}-{{ epoch }}
@@ -176,14 +178,14 @@ jobs:
176
178
docker tag localhost:5000/sdcflows nipreps/sdcflows:latest
177
179
docker tag localhost:5000/sdcflows nipreps/sdcflows
178
180
else
179
- echo "Pulling from Docker Hub"
181
+ LATEST=$( git describe --abbrev=0 )
182
+ echo "Pulling nipreps/sdcflows:$LATEST from Docker Hub"
180
183
docker pull ubuntu:xenial-20191010
181
184
docker tag ubuntu:xenial-20191010 localhost:5000/ubuntu
182
185
docker push localhost:5000/ubuntu
183
- docker pull nipreps/sdcflows:latest
186
+ docker pull nipreps/sdcflows:$LATEST
187
+ docker tag nipreps/sdcflows:$LATEST nipreps/sdcflows:latest
184
188
fi
185
- - checkout :
186
- path : /tmp/src/sdcflows
187
189
- run :
188
190
name : Build Docker image
189
191
no_output_timeout : 60m
You can’t perform that action at this time.
0 commit comments