Files
blender-docker/.gitlab-ci.yml
T
2022-12-24 17:42:39 +01:00

37 lines
703 B
YAML

image: docker:19.03.12
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
stage: build
services:
- docker:dind
script:
- apk add python3
- apk add py3-pip
- python3 -m pip install --upgrade pip
- python3 -m pip install -r requirement-build.txt
- python3 main.py
- python3 main.py --tag=latest