Try to config a git cache

This commit is contained in:
2022-12-24 17:42:39 +01:00
parent 03557b7c15
commit ad9281942e
2 changed files with 30 additions and 4 deletions
+21 -1
View File
@@ -1,6 +1,26 @@
image: docker:19.03.12
job-build-docker-latest:
stages:
- update
- build
cache:
key: blender-source
paths:
- /opt/blender-git/blender # Blender git repository source
- /opt/blender-git/lib # Blender Subversion lib package
policy: pull
update:
stage: update
cache:
key: blender-source
script:
- cd /opt/blender-git
- clone https://git.blender.org/blender.git
- svn checkout
build:
rules:
- changes:
- build.json