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
Container registry
Monitor
Service Desk
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
235ba32b
Commit
235ba32b
authored
1 year ago
by
Michael Blaschek
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
4293ea51
Branches
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
.gitlab-ci.yml
+9
-27
9 additions, 27 deletions
.gitlab-ci.yml
with
9 additions
and
27 deletions
.gitlab-ci.yml
+
9
−
27
View file @
235ba32b
image
:
name
:
quay.io/singularity/singularity:v3.
7.3
name
:
quay.io/singularity/singularity:v3.
11.4-slim
entrypoint
:
[
"
/bin/sh"
,
"
-c"
]
variables
:
sfile
:
definition-files/almalinux/Singularity.base
libarypath
:
almalinux:8-base
build
:
when
:
manual
script
:
-
/bin/bash .gitlabci/build.sh definition-files/almalinux/Singularity.base
# step 1. build the container!
# You can add any other sregistry push commands here, and specify a client
# (and make sure your define the encrypted environment credentials in gitlab
# to push to your storage locations of choice
-
mkdir -p build && cp *.sif build
#- mkdir -p build && cp Singularity* build
# Step 2. Take a look at "artifacts" below and add the paths you want added
# You can also add the entire build folder. You can also upload to storage
# clients defined by sregistry, here are some examples
# https://singularityhub.github.io/sregistry-cli/clients
# Environment variables must be defined in CI encrypted secrets/settings
# https://code.stanford.edu/help/ci/variables/README#variables).
#- /bin/bash build.sh --uri collection/container --cli google-storage Singularity
#- /bin/bash build.sh --uri collection/container --cli google-drive Singularity
#- /bin/bash build.sh --uri collection/container --cli globus Singularity
#- /bin/bash build.sh --uri collection/container --cli registry Singularity
# This is where you can save job artifacts
# https://docs.gitlab.com/ee/user/project/pipelines/job_artifacts.html
# You can specify the path to containers or the build folder to save.
# Don't forget to save your recipes too!
-
/bin/bash .gitlabci/build.sh $sfile
# step 2. push to harbor
-
singularity push ${sfile}.sif oras://harbor.wolke.img.univie.ac.at/apptainer/${librarypath}
artifacts
:
paths
:
-
build/Singularity.sif
-
build/Singularity
-
${sfile}.sif
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