Skip to content
Snippets Groups Projects
Commit ee74f70a authored by Vuillaume's avatar Vuillaume
Browse files

Merge branch 'update_CI_for_relase' into 'master'

Update ci for relase

See merge request !38
parents 1c122a29 634924cf
No related branches found
Tags v0.2
1 merge request!38Update ci for relase
Pipeline #137124 passed
......@@ -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:
......
......@@ -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-08-31",
"dateModified": "2021-09-22",
"dateCreated": "2021-08-31",
"datePublished": "2021-09-23",
"dateModified": "2021-09-23",
"operatingSystem": "",
"maintainer": {
"@type": "Person",
......
......@@ -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
......
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