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

Docker with single push/multiple tags, singularity builder upgraded

parent b667a154
No related branches found
No related tags found
No related merge requests found
Pipeline #81939 passed
......@@ -10,19 +10,15 @@ docker-build-push:
- registry-gitlab.pasteur.fr/dsi-tools/docker-images/docker:dind
script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" .
- docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME"
- docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA"
- export MY_TIME=`date +"%F-%H%M"`
- docker tag "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" "$CI_REGISTRY_IMAGE:$MY_TIME"
- docker push "$CI_REGISTRY_IMAGE:$MY_TIME"
- export MY_TIME=`date +"%F-%H%M"`
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_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-build-push:
stage: step2
needs: ["docker-build-push"]
image:
name: quay.io/singularity/singularity:v3.8.4
name: quay.io/singularity/singularity:v3.10.0
entrypoint: [""]
script:
- singularity build singularity.sif Singularity
......
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