Change the gitlab ci with a python setup

This commit is contained in:
2022-06-10 14:37:34 +02:00
parent 1603012c04
commit 81ef6d3396
3 changed files with 49 additions and 17 deletions
+3 -17
View File
@@ -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