mirror of
https://gitlab.com/stilobique/blender-docker.git
synced 2026-05-27 20:27:47 +02:00
41 lines
927 B
YAML
41 lines
927 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:
|
|
- mkdir -p /opt/blender-git/lib
|
|
- cd /opt/blender-git
|
|
- git clone https://git.blender.org/blender.git
|
|
- cd /opt/blender-git/blender
|
|
- git submodule update --init --recursive
|
|
- cd /opt/blender-git/lib
|
|
- svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64
|
|
|
|
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
|