use custom python image with requirements installed to speed up build time
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mathieu Broillet 2023-06-13 07:34:55 +02:00
parent eba11df2af
commit d5bd585aab
No known key found for this signature in database
GPG Key ID: 7D4F25BC50A0AA32

View File

@ -4,14 +4,14 @@ name: build_python_project
steps: steps:
- name: build - name: build
#image: python:alpine #image: python:3.11-bullseye
image: python:3.11-bullseye image: git.broillet.ch/mathieu/python3.11-bullseye-buildessential:1.0 # python3.11-bullseye image with build-essential & patchelf (apt) and nuitka(pip) installed
commands: commands:
- pip install -r requirements.txt - pip install -r requirements.txt
# - apk add build-base patchelf # - apk add build-base patchelf # not needed with custom image
- apt update -y # - apt update -y # not needed with custom image
- apt install build-essential patchelf -y # - apt install build-essential patchelf -y # not needed with custom image
- pip install nuitka # - pip install nuitka # not needed with custom image
- python -m nuitka --onefile run.py --include-data-dir=./resources=resources --output-filename="ProxmoxDeploy${DRONE_TAG##v}" - python -m nuitka --onefile run.py --include-data-dir=./resources=resources --output-filename="ProxmoxDeploy${DRONE_TAG##v}"
- name: gitea_release - name: gitea_release
image: plugins/gitea-release image: plugins/gitea-release