Update .drone.yml

This commit is contained in:
2025-06-16 05:53:39 +00:00
parent e4529610ea
commit f2f7730b3c

View File

@@ -3,7 +3,7 @@ type: kubernetes
name: Build on Multiple Distributions
steps:
- name: clone repo
- name: clone-repo
image: alpine/git
commands:
- git clone https://gitea.akshun-lab.uk/akshun/rust-setup.git /artifacts
@@ -11,8 +11,9 @@ steps:
- name: artifacts
path: /artifacts
- name: build on arch
- name: build-on-arch
image: archlinux:latest
depends_on: [clone-repo]
commands:
- pacman -Syu --noconfirm
- pacman -S --noconfirm rustup gcc
@@ -25,8 +26,9 @@ steps:
- name: artifacts
path: /artifacts
- name: build on debian
- name: build-on-debian
image: debian:stable
depends_on: [clone-repo]
commands:
- apt update && apt upgrade -y
- apt install -y curl gcc
@@ -40,8 +42,9 @@ steps:
- name: artifacts
path: /artifacts
- name: build on fedora
- name: build-on-fedora
image: fedora:latest
depends_on: [clone-repo]
commands:
- dnf up -y
- dnf install curl gcc -y
@@ -58,6 +61,7 @@ steps:
- name: upload-to-gitea
image: alpine/curl
depends_on: [build-on-debian, build-on-arch, build-on-fedora]
commands:
- apk add curl jq
- |
@@ -66,7 +70,6 @@ steps:
echo "Error: GITEA_TOKEN or GITEA_SERVER not set"
exit 1
fi
# Set repo path (fallback if DRONE_REPO is not set)
REPO_PATH="${DRONE_REPO:-akshun/setup-script}"