Skip to content

Commit 1b1cd10

Browse files
committed
Produce versioned copy of Singularity and fail if not on release
1 parent df3ddaa commit 1b1cd10

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

generate_container.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@ generate() {
2020
--entrypoint "/neurodocker/heudiconv.sh"
2121
}
2222

23+
version=$(git describe)
24+
2325
generate docker > Dockerfile
2426
generate singularity > Singularity
27+
28+
# Make versioned copy for Singularity Hub
29+
cp Singularity Singularity.${version}
30+
31+
if echo $version | grep -e '-g'; then
32+
echo "ERROR: Evil Yarik disabled updates of the containers without releases"
33+
echo " So this command will 'fail', and if output is alright, reset, tag "
34+
echo " (should match frozen version of heudiconv) and redo"
35+
exit 1
36+
fi

0 commit comments

Comments
 (0)