Skip to content
Snippets Groups Projects
Commit 1939a97a authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

small fix for gitlab ci bug

parent e3b25069
No related branches found
No related tags found
No related merge requests found
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment