upload_cache.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # pull only for most of the use cases for cache
  2. # only set "push" policy for the jobs under this file.
  3. # The cache would be updated when files matched specified patterns changes.
  4. .upload_cache_template:
  5. stage: upload_cache
  6. image: $ESP_ENV_IMAGE
  7. upload-pip-cache:
  8. extends:
  9. - .upload_cache_template
  10. - .before_script_minimal
  11. - .rules:patterns:python-cache
  12. tags:
  13. - $GEO
  14. - build
  15. cache:
  16. key: pip-cache
  17. paths:
  18. - .cache/pip
  19. policy: push
  20. script:
  21. - rm -rf .cache/pip # clear old packages
  22. - bash install.sh --enable-ci --enable-pytest
  23. parallel:
  24. matrix:
  25. - GEO: [ 'shiny', 'brew' ]
  26. upload-submodules-cache:
  27. extends:
  28. - .upload_cache_template
  29. - .before_script_minimal
  30. - .rules:patterns:submodule
  31. tags:
  32. - $GEO
  33. - build
  34. cache:
  35. key: submodule-cache
  36. paths:
  37. - .cache/submodule_archives
  38. policy: push
  39. script:
  40. - rm -rf .cache/submodule_archives # clear old submodule archives
  41. - add_gitlab_ssh_keys
  42. - fetch_submodules
  43. parallel:
  44. matrix:
  45. - GEO: [ 'shiny', 'brew' ]