Skip to content
Snippets Groups Projects
Commit 16fac39b authored by Quang tru HUYNH's avatar Quang tru HUYNH
Browse files

Revert ".gitlab-ci.yml from singularity-docker-miniconda3-jupyter"

This reverts commit 28af0030.
parent 28af0030
No related branches found
No related tags found
No related merge requests found
image: registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
services:
- registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
stages:
- build
- step1
- step2
docker:
stage: build
docker-build-push:
stage: step1
image:
name: registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:latest
services:
- registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
script:
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" registry-gitlab.pasteur.fr
- export MY_TIME=`date +"%F-%H%M"`
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$MY_TIME" . -f Dockerfile
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$MY_TIME" .
- docker push "$CI_REGISTRY_IMAGE"
singularity:
stage: build
singularity-build-push:
stage: step2
needs: ["docker-build-push"]
image:
name: quay.io/singularity/singularity:v3.11.0
name: quay.io/singularity/singularity:v3.10.0
entrypoint: [""]
script:
- singularity build singularity.sif Singularity
- ls -lh singularity.sif
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":latest
artifacts:
paths:
- singularity.sif
- singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":"latest"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment