2022-07-12 08:48:54 +00:00
|
|
|
# pull only for most of the use cases for cache
|
|
|
|
# only set "push" policy for the jobs under this file.
|
|
|
|
# The cache would be updated when files matched specified patterns changes.
|
|
|
|
|
2022-06-07 01:05:15 +00:00
|
|
|
.upload_cache_template:
|
|
|
|
stage: upload_cache
|
|
|
|
image: $ESP_ENV_IMAGE
|
|
|
|
|
2022-07-12 08:48:54 +00:00
|
|
|
upload-pip-cache:
|
2022-06-07 01:05:15 +00:00
|
|
|
extends:
|
|
|
|
- .upload_cache_template
|
2023-09-26 11:24:26 +00:00
|
|
|
- .before_script:minimal
|
2023-12-19 11:32:31 +00:00
|
|
|
- .rules:upload-python-cache
|
2022-07-12 08:48:54 +00:00
|
|
|
tags:
|
|
|
|
- $GEO
|
2022-12-09 08:39:29 +00:00
|
|
|
- cache
|
2022-06-07 01:05:15 +00:00
|
|
|
cache:
|
2023-12-19 08:19:50 +00:00
|
|
|
key: pip-cache-${LATEST_GIT_TAG}
|
2022-06-07 01:05:15 +00:00
|
|
|
paths:
|
|
|
|
- .cache/pip
|
|
|
|
policy: push
|
|
|
|
script:
|
|
|
|
- rm -rf .cache/pip # clear old packages
|
2022-07-28 07:32:13 +00:00
|
|
|
- bash install.sh --enable-ci --enable-pytest
|
2022-07-12 08:48:54 +00:00
|
|
|
parallel:
|
|
|
|
matrix:
|
|
|
|
- GEO: [ 'shiny', 'brew' ]
|
2022-06-07 01:05:15 +00:00
|
|
|
|
2022-07-12 08:48:54 +00:00
|
|
|
upload-submodules-cache:
|
|
|
|
extends:
|
|
|
|
- .upload_cache_template
|
2023-09-26 11:24:26 +00:00
|
|
|
- .before_script:minimal
|
2023-12-19 11:32:31 +00:00
|
|
|
- .rules:upload-submodule-cache
|
2022-06-07 01:05:15 +00:00
|
|
|
tags:
|
2022-07-12 08:48:54 +00:00
|
|
|
- $GEO
|
2022-12-09 08:39:29 +00:00
|
|
|
- cache
|
2022-07-12 08:48:54 +00:00
|
|
|
cache:
|
2023-12-19 08:19:50 +00:00
|
|
|
key: submodule-cache-${LATEST_GIT_TAG}
|
2022-07-12 08:48:54 +00:00
|
|
|
paths:
|
|
|
|
- .cache/submodule_archives
|
|
|
|
policy: push
|
|
|
|
script:
|
2022-09-29 13:33:03 +00:00
|
|
|
# use the default gitlab server
|
|
|
|
- unset LOCAL_GITLAB_HTTPS_HOST
|
2022-07-12 08:48:54 +00:00
|
|
|
- rm -rf .cache/submodule_archives # clear old submodule archives
|
2022-07-28 07:32:13 +00:00
|
|
|
- add_gitlab_ssh_keys
|
2022-07-12 08:48:54 +00:00
|
|
|
- fetch_submodules
|
|
|
|
parallel:
|
|
|
|
matrix:
|
|
|
|
- GEO: [ 'shiny', 'brew' ]
|