Update .drone.yml
This commit is contained in:
15
.drone.yml
15
.drone.yml
@@ -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
|
||||
@@ -56,8 +59,9 @@ steps:
|
||||
path: /artifacts
|
||||
|
||||
|
||||
- name: upload-to-gitea
|
||||
- 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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user