This commit is contained in:
38
.drone.yml
38
.drone.yml
@@ -3,17 +3,17 @@ 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
|
||||||
volumes:
|
volumes:
|
||||||
- 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
|
||||||
@@ -24,12 +24,12 @@ steps:
|
|||||||
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||||
- cp /artifacts/dist/setup /artifacts/arch-setup
|
- cp /artifacts/dist/setup /artifacts/arch-setup
|
||||||
volumes:
|
volumes:
|
||||||
- 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
|
||||||
@@ -39,12 +39,12 @@ steps:
|
|||||||
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||||
- cp /artifacts/dist/setup /artifacts/debian-setup
|
- cp /artifacts/dist/setup /artifacts/debian-setup
|
||||||
volumes:
|
volumes:
|
||||||
- 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
|
||||||
@@ -53,12 +53,12 @@ steps:
|
|||||||
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
- pyinstaller --onefile --add-data "bash/:bash/" --add-data "prompts/:prompts/" --add-data "config/:config/" setup.py
|
||||||
- cp /artifacts/dist/setup /artifacts/fedora-setup
|
- cp /artifacts/dist/setup /artifacts/fedora-setup
|
||||||
volumes:
|
volumes:
|
||||||
- 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
|
||||||
- |
|
- |
|
||||||
@@ -111,8 +111,8 @@ steps:
|
|||||||
GITEA_SERVER:
|
GITEA_SERVER:
|
||||||
from_secret: gitea-server
|
from_secret: gitea-server
|
||||||
volumes:
|
volumes:
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
path: /artifacts
|
path: /artifacts
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
|
|||||||
Reference in New Issue
Block a user