2023-06-09 14:51:47 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build_python_project
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2023-06-09 23:27:03 +02:00
|
|
|
#image: python:alpine
|
|
|
|
image: python:3.11-bullseye
|
2023-06-09 14:51:47 +02:00
|
|
|
commands:
|
|
|
|
- pip install -r requirements.txt
|
2023-06-09 23:27:03 +02:00
|
|
|
# - apk add build-base patchelf
|
2023-06-10 16:15:36 +02:00
|
|
|
- apt update -y
|
2023-06-09 23:27:03 +02:00
|
|
|
- apt install build-essential patchelf -y
|
2023-06-09 22:31:20 +02:00
|
|
|
- pip install nuitka
|
2023-06-09 23:10:30 +02:00
|
|
|
- python -m nuitka --onefile run.py --include-data-dir=./resources=resources --output-filename="ProxmoxDeploy${DRONE_TAG##v}"
|
2023-06-09 14:51:47 +02:00
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: api_key
|
|
|
|
base_url: https://git.broillet.ch
|
2023-06-09 23:10:30 +02:00
|
|
|
files: ProxmoxDeploy${DRONE_TAG##v}
|
2023-06-09 14:51:47 +02:00
|
|
|
when:
|
|
|
|
event: tag
|