| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- # 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.
- .upload_cache_template:
- stage: upload_cache
- image: $ESP_ENV_IMAGE
- upload-pip-cache:
- extends:
- - .upload_cache_template
- - .before_script:minimal
- - .rules:patterns:python-cache
- tags:
- - $GEO
- - cache
- cache:
- key: pip-cache
- paths:
- - .cache/pip
- policy: push
- script:
- - rm -rf .cache/pip # clear old packages
- - bash install.sh --enable-ci --enable-pytest
- parallel:
- matrix:
- - GEO: [ 'shiny', 'brew' ]
- upload-submodules-cache:
- extends:
- - .upload_cache_template
- - .before_script:minimal
- - .rules:patterns:submodule
- tags:
- - $GEO
- - cache
- cache:
- key: submodule-cache
- paths:
- - .cache/submodule_archives
- policy: push
- script:
- # use the default gitlab server
- - unset LOCAL_GITLAB_HTTPS_HOST
- - rm -rf .cache/submodule_archives # clear old submodule archives
- - add_gitlab_ssh_keys
- - fetch_submodules
- parallel:
- matrix:
- - GEO: [ 'shiny', 'brew' ]
- upload-danger-npm-cache:
- stage: upload_cache
- image: node:18.15.0-alpine3.16
- extends:
- - .rules:patterns:dangerjs
- tags:
- - $GEO
- - cache
- cache:
- key:
- files:
- - .gitlab/dangerjs/package-lock.json
- paths:
- - .gitlab/dangerjs/node_modules/
- policy: push
- before_script:
- - echo "Skip before scripts ...."
- script:
- - cd .gitlab/dangerjs
- - npm install --no-progress --no-update-notifier
- parallel:
- matrix:
- - GEO: [ 'shiny', 'brew' ]
|