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