This commit is contained in:
18
.drone.yml
18
.drone.yml
@@ -3,7 +3,7 @@ type: kubernetes
|
|||||||
name: multi-distro-build
|
name: multi-distro-build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- name: clone-repo
|
||||||
image: alpine/git:latest
|
image: alpine/git:latest
|
||||||
commands:
|
commands:
|
||||||
- git clone https://gitea.akshun-lab.uk/akshun/setup-script.git /artifacts
|
- git clone https://gitea.akshun-lab.uk/akshun/setup-script.git /artifacts
|
||||||
@@ -11,9 +11,9 @@ steps:
|
|||||||
- name: artifacts
|
- name: artifacts
|
||||||
path: /artifacts
|
path: /artifacts
|
||||||
|
|
||||||
- name: build-arch
|
- name: arch-build
|
||||||
image: archlinux:latest
|
image: archlinux:latest
|
||||||
depends_on: [clone]
|
depends_on: [clone-repo]
|
||||||
commands:
|
commands:
|
||||||
- pacman -Syu --noconfirm
|
- pacman -Syu --noconfirm
|
||||||
- pacman -S --noconfirm git python python-pip binutils
|
- pacman -S --noconfirm git python python-pip binutils
|
||||||
@@ -27,9 +27,9 @@ steps:
|
|||||||
- name: artifacts
|
- name: artifacts
|
||||||
path: /artifacts
|
path: /artifacts
|
||||||
|
|
||||||
- name: build-debian
|
- name: debian-build
|
||||||
image: debian:stable-slim
|
image: debian:stable-slim
|
||||||
depends_on: [clone]
|
depends_on: [clone-repo]
|
||||||
commands:
|
commands:
|
||||||
- apt-get update && apt-get upgrade -y
|
- apt-get update && apt-get upgrade -y
|
||||||
- apt-get install -y git python3 python3-pip binutils
|
- apt-get install -y git python3 python3-pip binutils
|
||||||
@@ -42,9 +42,9 @@ steps:
|
|||||||
- name: artifacts
|
- name: artifacts
|
||||||
path: /artifacts
|
path: /artifacts
|
||||||
|
|
||||||
- name: build-fedora
|
- name: fedora-build
|
||||||
image: fedora:latest
|
image: fedora:latest
|
||||||
depends_on: [clone]
|
depends_on: [clone-repo]
|
||||||
commands:
|
commands:
|
||||||
- dnf update -y
|
- dnf update -y
|
||||||
- dnf install -y git python python-pip binutils
|
- dnf install -y git python python-pip binutils
|
||||||
@@ -56,9 +56,9 @@ steps:
|
|||||||
- name: artifacts
|
- name: artifacts
|
||||||
path: /artifacts
|
path: /artifacts
|
||||||
|
|
||||||
- name: upload
|
- name: upload-artifacts
|
||||||
image: alpine/curl:latest
|
image: alpine/curl:latest
|
||||||
depends_on: [build-arch, build-debian, build-fedora]
|
depends_on: [arch-build, debian-build, fedora-build]
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl jq
|
- apk add --no-cache curl jq
|
||||||
- |
|
- |
|
||||||
|
|||||||
Reference in New Issue
Block a user