mirror of
https://gitlab.com/stilobique/blender-docker.git
synced 2026-05-28 04:37:47 +02:00
Change the gitlab ci with a python setup
This commit is contained in:
+3
-17
@@ -1,24 +1,10 @@
|
||||
image: docker:19.03.12
|
||||
|
||||
job-init:
|
||||
stage: .pre
|
||||
script: echo "make something useful before build stage"
|
||||
|
||||
job-build-docker-latest:
|
||||
stage: build
|
||||
services:
|
||||
- docker:19.03.12-dind
|
||||
script:
|
||||
- apk update && apk add curl jq python3 py3-pip
|
||||
- export export MAJOR=$(jq -r .b3d_vs_major build.json)
|
||||
- export export MINOR=$(jq -r .b3d_vs_minor build.json)
|
||||
- echo Blender version are $MAJOR
|
||||
- echo The Minor blender version are $MINOR
|
||||
- docker login --username stilobique --password $docker_hub_password
|
||||
- docker build --build-arg b3d_vs_major=$MAJOR --build-arg b3d_vs_minor=$MINOR --tag stilobique/blender:$MAJOR.$MINOR .
|
||||
- docker push
|
||||
|
||||
#job-build-docker-tag:
|
||||
# stage: build
|
||||
# script:
|
||||
# - docker build -t stilobique/blender:latest
|
||||
- python -m pip install --upgrade pip
|
||||
- python -m pip install -r requirement-build.txt
|
||||
- python main.py
|
||||
|
||||
Reference in New Issue
Block a user