Update .drone.yml
Some checks failed
continuous-integration/drone Build encountered an error

This commit is contained in:
2025-06-16 05:40:23 +00:00
parent 9b830c7acb
commit 5eebf0cc7d

View File

@@ -4,7 +4,7 @@ name: Build on Multiple Distributions
steps:
- name: clone-repo
image: alpine/git
image: alpine/git:latest
commands:
- git clone https://gitea.akshun-lab.uk/akshun/setup-script.git /artifacts
volumes:
@@ -24,24 +24,22 @@ steps:
- pip install pyinstaller inquirerpy distro
- cd /artifacts
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
- cp /artifacts/dist/setup /artifacts/
- mv /artifacts/setup /artifacts/arch-setup
- cp /artifacts/dist/setup /artifacts/arch-setup
volumes:
- name: artifacts
path: /artifacts
# Debian build
- name: build-on-debian
image: debian:stable
image: debian:stable-slim
commands:
- apt update && apt upgrade -y
- apt install -y git python3 python3-pip binutils
- mv /lib/python*/EXTERNALLY-MANAGED .
- apt-get update && apt-get upgrade -y
- apt-get install -y git python3 python3-pip binutils
- mv /usr/lib/python*/EXTERNALLY-MANAGED .
- pip install pyinstaller inquirerpy distro
- cd /artifacts
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
- cp /artifacts/dist/setup /artifacts/
- mv /artifacts/setup /artifacts/debian-setup
- cp /artifacts/dist/setup /artifacts/debian-setup
volumes:
- name: artifacts
path: /artifacts
@@ -50,21 +48,20 @@ steps:
- name: build-on-fedora
image: fedora:latest
commands:
- dnf up -y
- dnf update -y
- dnf install -y git python python-pip binutils
- pip install inquirerpy distro pyinstaller
- cd /artifacts
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
- cp /artifacts/dist/setup /artifacts/
- mv /artifacts/setup /artifacts/fedora-setup
- cp /artifacts/dist/setup /artifacts/fedora-setup
volumes:
- name: artifacts
path: /artifacts
- name: upload-to-gitea
image: alpine/curl
image: alpine/curl:latest
commands:
- apk add curl jq
- apk add --no-cache curl jq
- |
# Ensure required variables are set
if [ -z "$GITEA_TOKEN" ] || [ -z "$GITEA_SERVER" ]; then