Skip to content
Snippets Groups Projects

Update docker env

Merged Enrique Garcia requested to merge update_docker into master
3 files
+ 25
18
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 18
6
@@ -66,16 +66,29 @@ deploy_zenodo:
only:
### Ideally this stage should be run only when a new release / tag of the source code is created, i.e., (- tags).
# The script is changed to check that the both `upload_new_deposit` and `upload_new_version_deposit` works nicely.
- tags
- branches # For testing
#deploy_from_container:
# stage: deploy
# image: gitlab-registry.in2p3.fr/escape2020/wp3/zenodoci:v1.1
# before_script:
# - test_connection_zenodo --token $ZENODO_TOKEN --sandbox False -p $CI_PROJECT_DIR
# script:
# - mkdir -p build
# - parse_last_release_git.sh $CI_PROJECT_NAME $CI_PROJECT_URL
# - ls ./build
#
# - upload_new_deposit --token $ZENODO_TOKEN --sandbox False --input-dir ./build
# only:
# - tags
test_deploy_from_container:
stage: test_container
image: gitlab-registry.in2p3.fr/escape2020/wp3/zenodoci
image: gitlab-registry.in2p3.fr/escape2020/wp3/zenodoci:v1.1
before_script:
- wget -q https://gitlab.in2p3.fr/escape2020/wp3/zenodoci/-/raw/master/zenodoci/parse_last_release.sh
- pwd parse_last_release.sh # testing/debugging
- which parse_last_release_git.sh
- test_connection_zenodo --token $SANDBOX_ZENODO_TOKEN --sandbox True -p $CI_PROJECT_DIR
script:
- pwd # testing/debugging
@@ -87,11 +100,10 @@ test_deploy_from_container:
- codemeta2zenodo -h
- mkdir -p build
- /bin/bash parse_last_release.sh $CI_PROJECT_NAME $CI_PROJECT_URL
- parse_last_release_git.sh $CI_PROJECT_NAME $CI_PROJECT_URL
- ls ./build
- upload_new_deposit --token $SANDBOX_ZENODO_TOKEN --sandbox True --input-dir ./build
- upload_new_version_deposit -t $SANDBOX_ZENODO_TOKEN -s True -i ./build -id $ZENODO_PROJECT_ID
only:
- tags
- branches # testing/debugging
Loading