Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
eossr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ESCAPE2020
WP3
eossr
Commits
ee74f70a
Commit
ee74f70a
authored
3 years ago
by
Vuillaume
Browse files
Options
Downloads
Plain Diff
Merge branch 'update_CI_for_relase' into 'master'
Update ci for relase See merge request
!38
parents
1c122a29
634924cf
No related branches found
Branches containing commit
Tags
v0.2
Tags containing commit
1 merge request
!38
Update ci for relase
Pipeline
#137124
passed
3 years ago
Stage: test
Stage: build_containers
Stage: zenodo
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+10
-1
10 additions, 1 deletion
.gitlab-ci.yml
codemeta.json
+3
-4
3 additions, 4 deletions
codemeta.json
examples/CI_code_snippets/5.ex_CI_build_image_and_upload_OSSR.md
+2
-2
2 additions, 2 deletions
...s/CI_code_snippets/5.ex_CI_build_image_and_upload_OSSR.md
with
15 additions
and
7 deletions
.gitlab-ci.yml
+
10
−
1
View file @
ee74f70a
...
...
@@ -54,12 +54,21 @@ build_docker:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker build -t $CI_REGISTRY_IMAGE:$LAST_RELEASE .
-
docker push $CI_REGISTRY_IMAGE:$LAST_RELEASE
# Save docker image into a tar file to be uploaded in next stage
-
docker save -o Docker_$CI_PROJECT_NAME_$LAST_RELEASE.tar $CI_REGISTRY_IMAGE:$LAST_RELEASE
-
cd .. && mkdir -p build && cp Docker/*.tar build
-
ls build
artifacts
:
paths
:
-
build/Docker_*.tar
only
:
-
tags
deploy_zenodo
:
stage
:
zenodo
image
:
gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.1
image
:
gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.2
dependencies
:
-
build_docker
before_script
:
-
eossr-check-connection-zenodo --token $ZENODO_TOKEN --sandbox False -p $CI_PROJECT_DIR
script
:
...
...
This diff is collapsed.
Click to expand it.
codemeta.json
+
3
−
4
View file @
ee74f70a
...
...
@@ -7,7 +7,6 @@
"softwareVersion"
:
"v0.2"
,
"codeRepository"
:
"https://gitlab.in2p3.fr/escape2020/wp3/eossr"
,
"developmentStatus"
:
"active"
,
"dateCreated"
:
"2021-08-31"
,
"isAccessibleForFree"
:
true
,
"isPartOf"
:
[
"https://gitlab.in2p3.fr/escape2020"
,
...
...
@@ -43,9 +42,9 @@
"downloadUrl"
:
""
,
"installUrl"
:
""
,
"releaseNotes"
:
""
,
"dateCreated"
:
""
,
"datePublished"
:
"2021-0
8-31
"
,
"dateModified"
:
"2021-09-2
2
"
,
"dateCreated"
:
"
2021-08-31
"
,
"datePublished"
:
"2021-0
9-23
"
,
"dateModified"
:
"2021-09-2
3
"
,
"operatingSystem"
:
""
,
"maintainer"
:
{
"@type"
:
"Person"
,
...
...
This diff is collapsed.
Click to expand it.
examples/CI_code_snippets/5.ex_CI_build_image_and_upload_OSSR.md
+
2
−
2
View file @
ee74f70a
...
...
@@ -48,12 +48,12 @@ build_docker_image:
-
docker push $CI_REGISTRY_IMAGE:$LAST_RELEASE
# Save docker image into a file to be uploaded in next stage
-
docker save -o Docker_
image_ESCAPE_template_project
_$LAST_RELEASE.tar $CI_REGISTRY_IMAGE:$LAST_RELEASE
-
docker save -o Docker_
$CI_PROJECT_NAME
_$LAST_RELEASE.tar $CI_REGISTRY_IMAGE:$LAST_RELEASE
-
cd .. && mkdir -p build && cp Docker/*.tar build
-
ls build
artifacts
:
paths
:
-
build/Docker_
image_ESCAPE_template_project_
*.tar
-
build/Docker_*.tar
only
:
-
tags
...
...
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