Skip to content
Snippets Groups Projects
Commit 65fdfe60 authored by Stefan Reck's avatar Stefan Reck
Browse files

Merge branch 'singularity_artifacts' into 'master'

Singularity artifacts

See merge request !16
parents a57f74c9 267755ab
No related branches found
No related tags found
1 merge request!16Singularity artifacts
......@@ -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
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