Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Singularity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMGW
Singularity
Commits
1939a97a
Commit
1939a97a
authored
1 year ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
small fix for gitlab ci bug
parent
e3b25069
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlabci/build.sh
+5
-4
5 additions, 4 deletions
.gitlabci/build.sh
with
5 additions
and
4 deletions
.gitlabci/build.sh
+
5
−
4
View file @
1939a97a
...
...
@@ -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}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment