Add deploy stage to CI/CD pipeline


Signed-off-by: Norman Ziegner (Out of office 23 July - 29 Oct. 2021)'s avatarNorman Ziegner <norman.ziegner@ufz.de>
parent b0d44548
Pipeline #70707 passed with stages
in 1 minute and 56 seconds
......@@ -2,7 +2,12 @@ image:
name: quay.io/singularity/singularity:v3.7.3
entrypoint: [""]
stages:
- build
- deploy
build:
stage: build
tags:
- docker
script:
......@@ -35,3 +40,9 @@ build:
paths:
- build/Singularity.sif
- build/Singularity
deploy:
stage: deploy
script:
- echo singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" build/Singularity.sif oras://"${CI_REGISTRY_IMAGE}"/"${CI_PROJECT_NAME}":"${CI_COMMIT_REF_SLUG}"
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" build/Singularity.sif oras://"${CI_REGISTRY_IMAGE}"/"${CI_PROJECT_NAME}":"${CI_COMMIT_REF_SLUG}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment