Commit bb483b6d authored by Vuillaume's avatar Vuillaume
Browse files

Merge branch 'sandbox_arg' into 'master'

update CLI for v0.6

See merge request !190
parents 38e630d4 be182a0d
Pipeline #173214 failed with stages
in 2 minutes and 25 seconds
......@@ -58,9 +58,9 @@ test_ci_eossr:
test_codemeta_ingestion:
stage: test
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:latest
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
script:
- eossr-check-connection-zenodo --token $ZENODO_TOKEN --sandbox False -p $CI_PROJECT_DIR
- eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
- changes:
......@@ -104,11 +104,11 @@ build_docker_main:
deploy_zenodo:
stage: zenodo
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:latest
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
dependencies:
- build_docker
before_script:
- eossr-check-connection-zenodo --token $ZENODO_TOKEN --sandbox False -p $CI_PROJECT_DIR
- eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
- mkdir -p /zenodo_build
script:
- eossr-upload-repository -t $ZENODO_TOKEN -i $CI_PROJECT_DIR --archive-name $CI_PROJECT_NAME.zip -id $ZENODO_RECORD_ID
......
......@@ -67,13 +67,13 @@ so that environment variable(s) should look like:
.. code:: sh
$ eossr-upload-repository --token $ZENODO_TOKEN --sandbox False --input-directory zenodo_build
$ eossr-upload-repository --token $ZENODO_TOKEN --input-directory zenodo_build
or
.. code:: sh
$ eossr-upload-repository -t $SANDBOX_ZENODO_TOKEN -s True -i zenodo_build -id $SANDBOX_ZENODO_PROJECT_ID
$ eossr-upload-repository -t $SANDBOX_ZENODO_TOKEN --sandbox -i zenodo_build -id $SANDBOX_ZENODO_PROJECT_ID
3. Into your ``.gitlab-ci.yml`` file
......
......@@ -33,7 +33,7 @@ stages:
deploy_zenodo:
stage: deploy
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:latest
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
before_script:
- eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
script:
......@@ -51,7 +51,7 @@ stages:
deploy_zenodo:
stage: deploy
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:latest
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
before_script:
- eossr-check-connection-zenodo --token $SANDBOX_ZENODO_TOKEN -p $CI_PROJECT_DIR
script:
......
......@@ -19,9 +19,9 @@ stages:
test_codemeta_ingestion:
stage: test_codemeta
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:latest
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
script:
- eossr-check-connection-zenodo --token $ZENODO_TOKEN --sandbox False -p $CI_PROJECT_DIR
- eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
- changes:
......@@ -36,9 +36,9 @@ stages:
test_codemeta_ingestion:
stage: test_codemeta
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:latest
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
script:
- eossr-check-connection-zenodo --token $ZENODO_TOKEN --sandbox False -p $CI_PROJECT_DIR
- eossr-check-connection-zenodo --token $ZENODO_TOKEN -p $CI_PROJECT_DIR
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
- changes:
......@@ -80,10 +80,10 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.5
image: gitlab-registry.in2p3.fr/escape2020/wp3/eossr:v0.6
steps:
- uses: actions/checkout@v2
- name: check zenodo
run: |
eossr-check-connection-zenodo --token ${{ secrets.ZENODO_TOKEN }} --sandbox False -p .
eossr-check-connection-zenodo --token ${{ secrets.ZENODO_TOKEN }} -p .
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment