Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
singularity-docker-aydin-gpu
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quang tru HUYNH
singularity-docker-aydin-gpu
Commits
16fac39b
Commit
16fac39b
authored
1 year ago
by
Quang tru HUYNH
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-16
14 additions, 16 deletions
.gitlab-ci.yml
with
14 additions
and
16 deletions
.gitlab-ci.yml
+
14
−
16
View file @
16fac39b
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.1
1
.0
name
:
quay.io/singularity/singularity:v3.1
0
.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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment