This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -3,7 +3,7 @@ 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
|
||||
@@ -11,9 +11,9 @@ steps:
|
||||
- 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
|
||||
@@ -27,9 +27,9 @@ steps:
|
||||
- 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
|
||||
@@ -42,9 +42,9 @@ steps:
|
||||
- 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
|
||||
@@ -56,9 +56,9 @@ steps:
|
||||
- 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
|
||||
- |
|
||||
|
||||
Reference in New Issue
Block a user