mirror of
https://gitlab.com/stilobique/blender-docker.git
synced 2026-05-27 20:27:47 +02:00
Try to change the docker tag "latest" setup, and update the CI with this config
This commit is contained in:
@@ -13,3 +13,4 @@ job-build-docker-latest:
|
||||
- python3 -m pip install --upgrade pip
|
||||
- python3 -m pip install -r requirement-build.txt
|
||||
- python3 main.py
|
||||
- python3 main.py --tag=latest
|
||||
|
||||
@@ -2,6 +2,7 @@ import os
|
||||
import pathlib
|
||||
import json
|
||||
import docker
|
||||
import sys
|
||||
|
||||
# TODO Update readme file badge with blender version
|
||||
# TODO add a check if the image build are stored in the docker register
|
||||
@@ -53,7 +54,12 @@ def build_docker(b3d_version: (str, str), latest: bool = False):
|
||||
if __name__ == "__main__":
|
||||
version = get_data_from_json()
|
||||
print(f'Start -> Setup the package with blender version "{version[0]}.{version[1]}"')
|
||||
print('Generate image with tag version.')
|
||||
build_docker(b3d_version=version)
|
||||
print('Generate image to latest tag.')
|
||||
for arg in sys.argv:
|
||||
if '--tag=' in arg:
|
||||
print(f'Build with the tag "{arg}".')
|
||||
build_docker(b3d_version=version, latest=True)
|
||||
break
|
||||
else:
|
||||
build_docker(b3d_version=version)
|
||||
print(f'Start to build the docker file.')
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user