Use drone templates.
continuous-integration/drone/push Build was killed Details

Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
Yilin Sun 2024-04-16 14:00:06 +08:00
parent b8005a7276
commit e178bbd593
Signed by: imi415
GPG Key ID: DB982239424FF8AC
3 changed files with 39 additions and 27 deletions

View File

@ -1,29 +1,13 @@
---
kind: pipeline
type: vm
name: System Image
pool:
use: do-docker-20-04
steps:
- name: Submodules
commands:
- git submodule update --init --recursive
- name: Dependencies
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- apt-get update
- apt-get install -y sed make binutils build-essential diffutils gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc findutils wget
- name: Configure
commands:
- ./buildroot_make.sh lwgw_orangepi_pc_defconfig
- name: Build
commands:
- ./buildroot_make.sh
kind: template
load: build-image.yaml
data:
name: "RaspberryPi 2"
defconfig: "rpi2_defconfig"
---
kind: template
load: build-image.yaml
data:
name: "TLT113i-miniEVM"
defconfig: "tlt113_minievm_defconfig"

1
.drone/NOTE Normal file
View File

@ -0,0 +1 @@
This directory is only used to store the files as a reference, the actual templates are stored on Drone server.

27
.drone/build-image.yaml Normal file
View File

@ -0,0 +1,27 @@
kind: pipeline
type: vm
name: Build Image for {{ .input.name }}
pool:
use: do-docker-20-04
steps:
- name: Submodules for {{ .input.name }}
commands:
- git submodule update --init --recursive
- name: Install dependencies for {{ .input.name }}
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- apt-get update
- apt-get install -y sed make binutils build-essential diffutils gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc findutils wget
- name: Configure for {{ .input.name }}
commands:
- ./buildroot_make.sh {{ .input.defconfig }}
- name: Build image for {{ .input.name }}
commands:
- ./buildroot_make.sh -j4