diff --git a/.gitlabci/build.sh b/.gitlabci/build.sh index e605a4cf624081bf24c47f4a2de7f7d6b591293d..d4974741ac76e7971e20cf527cfa25e47749d771 100644 --- a/.gitlabci/build.sh +++ b/.gitlabci/build.sh @@ -107,7 +107,7 @@ is_valid_client () { # Test if client is valid -clients=("google-storage" "registry" "globus" "dropbox" "google-drive") +clients=("google-storage" "registry" "globus" "dropbox" "google-drive" "library") if [ "${cli}" != "" ]; then is_valid_client "${cli}" "${clients[@]}" @@ -141,7 +141,7 @@ if [ -f "$recipe" ]; then # Example testing using run (you could also use test command) echo "Testing the image... Marco!" - singularity exec $imagefile echo "Polo!" + singularity exec --no-home $imagefile echo "Polo!" # Example sregistry commands to push to endpoints @@ -149,7 +149,8 @@ if [ -f "$recipe" ]; then # If the uri isn't provided, he gets a robot name if [ "${uri}" == "" ]; then - uri=$(python -c "from sregistry.logger.namer import RobotNamer; bot=RobotNamer(); print(bot.generate())") + # uri=$(python -c "from sregistry.logger.namer import RobotNamer; bot=RobotNamer(); print(bot.generate())") + uri="gitlab-test" fi # If a tag is provided, add to uri @@ -158,7 +159,7 @@ if [ -f "$recipe" ]; then fi echo "Pushing ${uri} to ${cli}://" - # singularity + singularity push ${imagefile} ${cli}://${uri} # echo "SREGISTRY_CLIENT=${cli} sregistry push --name ${uri} ${imagefile}" # SREGISTRY_CLIENT="${cli}" sregistry push --name "${uri}" "${imagefile}"