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

create and upload singularity image without artifacts

parent a57f74c9
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,7 @@ stages: ...@@ -14,8 +14,7 @@ stages:
- doc - doc
- docker - docker
- release - release
- build-singularity - singularity
- upload-singularity
cache: cache:
...@@ -113,34 +112,16 @@ release-image: ...@@ -113,34 +112,16 @@ release-image:
- tags - tags
build-singularity: singularity:
image: docker.km3net.de/base/singularity:3.1 image: docker.km3net.de/base/singularity:3.1
stage: build-singularity stage: singularity
script: script:
- singularity --version - singularity --version
- singularity build $SINGULARITY_IMAGE Singularity - singularity build $SINGULARITY_IMAGE Singularity
artifacts: - apt-get update -qy
paths: - apt-get install -qy lftp
- $SINGULARITY_IMAGE - 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"
expire_in: 10 days
tags: tags:
- docker - docker
only: only:
- tags - 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