Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2025-06-16 05:46:02 +00:00
parent e5206c6954
commit d29faf4c3c

View File

@@ -3,17 +3,17 @@ type: kubernetes
name: multi-distro-build
steps:
- name: clone
- name: clone-repo
image: alpine/git:latest
commands:
- git clone https://gitea.akshun-lab.uk/akshun/setup-script.git /artifacts
volumes:
- name: artifacts
path: /artifacts
- name: artifacts
path: /artifacts
- name: build-arch
- name: arch-build
image: archlinux:latest
depends_on: [clone]
depends_on: [clone-repo]
commands:
- pacman -Syu --noconfirm
- pacman -S --noconfirm git python python-pip binutils
@@ -24,12 +24,12 @@ steps:
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
- cp /artifacts/dist/setup /artifacts/arch-setup
volumes:
- name: artifacts
path: /artifacts
- name: artifacts
path: /artifacts
- name: build-debian
- name: debian-build
image: debian:stable-slim
depends_on: [clone]
depends_on: [clone-repo]
commands:
- apt-get update && apt-get upgrade -y
- apt-get install -y git python3 python3-pip binutils
@@ -39,12 +39,12 @@ steps:
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
- cp /artifacts/dist/setup /artifacts/debian-setup
volumes:
- name: artifacts
path: /artifacts
- name: artifacts
path: /artifacts
- name: build-fedora
- name: fedora-build
image: fedora:latest
depends_on: [clone]
depends_on: [clone-repo]
commands:
- dnf update -y
- dnf install -y git python python-pip binutils
@@ -53,12 +53,12 @@ steps:
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
- cp /artifacts/dist/setup /artifacts/fedora-setup
volumes:
- name: artifacts
path: /artifacts
- name: artifacts
path: /artifacts
- name: upload
- name: upload-artifacts
image: alpine/curl:latest
depends_on: [build-arch, build-debian, build-fedora]
depends_on: [arch-build, debian-build, fedora-build]
commands:
- apk add --no-cache curl jq
- |
@@ -111,8 +111,8 @@ steps:
GITEA_SERVER:
from_secret: gitea-server
volumes:
- name: artifacts
path: /artifacts
- name: artifacts
path: /artifacts
volumes:
- name: artifacts