Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OrcaSong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Machine Learning
OrcaSong
Commits
267755ab
Commit
267755ab
authored
4 years ago
by
Stefan Reck
Browse files
Options
Downloads
Patches
Plain Diff
create and upload singularity image without artifacts
parent
a57f74c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-25
6 additions, 25 deletions
.gitlab-ci.yml
with
6 additions
and
25 deletions
.gitlab-ci.yml
+
6
−
25
View file @
267755ab
...
...
@@ -14,8 +14,7 @@ stages:
-
doc
-
docker
-
release
-
build-singularity
-
upload-singularity
-
singularity
cache
:
...
...
@@ -113,34 +112,16 @@ release-image:
-
tags
build-
singularity
:
singularity
:
image
:
docker.km3net.de/base/singularity:3.1
stage
:
build-
singularity
stage
:
singularity
script
:
-
singularity --version
-
singularity build $SINGULARITY_IMAGE Singularity
artifacts
:
paths
:
-
$SINGULARITY_IMAGE
expire_in
:
10 days
-
apt-get update -qy
-
apt-get install -qy lftp
-
lftp -u $KM3NET_SFTP_USER,$KM3NET_SFTP_PASSWORD sftp://$KM3NET_SFTP_HOST -e "set sftp:auto-confirm yes; set ssl:verify-certificate no; cd singularity/; put $SINGULARITY_IMAGE; bye"
tags
:
-
docker
only
:
-
tags
upload-singularity
:
image
:
ubuntu:latest
stage
:
upload-singularity
before_script
:
-
apt-get update -qy
-
apt-get install -y lftp
script
:
-
mkdir -p ~/.ssh/
-
touch ~/.ssh/known_hosts
-
ssh-keyscan -H $KM3NET_SFTP_HOST >> ~/.ssh/known_hosts
-
lftp -u $KM3NET_SFTP_USER,$KM3NET_SFTP_PASSWORD sftp://$KM3NET_SFTP_HOST -e "set ssl:verify-certificate no; cd singularity/; put $SINGULARITY_IMAGE; bye"
dependencies
:
-
build-singularity
only
:
-
tags
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