Commit c9355d4c authored by Benoit Martin's avatar Benoit Martin

add cache key to try and fix cache issues

parent 5fd7b3ed
......@@ -42,12 +42,14 @@ stages:
.package_template: &package
stage: package
script:
- pwd
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.icm-institute.org/aramislab/conda-recipes.git
- mkdir conda-recipes/deformetrica/build && cd conda-recipes/deformetrica/build
- conda install conda-build && conda update conda && conda update conda-build
- export GIT_SSL_NO_VERIFY=1
- conda-build --py 3.5 --py 3.6 -c pytorch -c anaconda -c conda-forge --output-folder . ../
cache:
key: "$CI_COMMIT_SHA"
paths:
- conda-recipes/deformetrica/build
......@@ -113,6 +115,7 @@ package:macos:
# - cd conda-recipes/deformetrica/build
# - anaconda --token=$ANACONDA_TOKEN upload --user Aramislab --label dev --force **/*.tar.bz2
# cache:
# key: "$CI_COMMIT_SHA"
# paths:
# - conda-recipes/deformetrica/build
......@@ -129,6 +132,7 @@ deploy:anaconda:
- cd conda-recipes/deformetrica/build
- anaconda --token=$ANACONDA_TOKEN upload --user Aramislab **/*.tar.bz2
cache:
key: "$CI_COMMIT_SHA"
paths:
- conda-recipes/deformetrica/build
......@@ -136,6 +140,7 @@ deploy:examples:
stage: deploy
tags:
- linux
- cuda-cc52
# only:
# - tags
script:
......@@ -155,6 +160,7 @@ cleanup:
script:
- rm -rf conda-recipes/
cache:
key: "$CI_COMMIT_SHA"
paths:
- conda-recipes/deformetrica/build
when: always
......
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