ProxmoxDeploy/.drone.yml
Mathieu Broillet 244abbb340
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
continuous-integration/drone Build is passing
update drone to debian
2023-06-10 16:15:36 +02:00

24 lines
643 B
YAML

kind: pipeline
type: docker
name: build_python_project
steps:
- name: build
#image: python:alpine
image: python:3.11-bullseye
commands:
- pip install -r requirements.txt
# - apk add build-base patchelf
- apt update -y
- apt install build-essential patchelf -y
- pip install nuitka
- python -m nuitka --onefile run.py --include-data-dir=./resources=resources --output-filename="ProxmoxDeploy${DRONE_TAG##v}"
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: api_key
base_url: https://git.broillet.ch
files: ProxmoxDeploy${DRONE_TAG##v}
when:
event: tag