Skip to content

Commit

Permalink
Produce versioned copy of Singularity and fail if not on release
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Jan 5, 2019
1 parent df3ddaa commit 1b1cd10
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions generate_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,17 @@ generate() {
--entrypoint "/neurodocker/heudiconv.sh"
}

version=$(git describe)

generate docker > Dockerfile
generate singularity > Singularity

# Make versioned copy for Singularity Hub
cp Singularity Singularity.${version}

if echo $version | grep -e '-g'; then
echo "ERROR: Evil Yarik disabled updates of the containers without releases"
echo " So this command will 'fail', and if output is alright, reset, tag "
echo " (should match frozen version of heudiconv) and redo"
exit 1
fi

0 comments on commit 1b1cd10

Please sign in to comment.