Use drone templates.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
parent
b8005a7276
commit
e178bbd593
38
.drone.yml
38
.drone.yml
|
@ -1,29 +1,13 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: template
|
||||||
type: vm
|
load: build-image.yaml
|
||||||
name: System Image
|
data:
|
||||||
|
name: "RaspberryPi 2"
|
||||||
pool:
|
defconfig: "rpi2_defconfig"
|
||||||
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: "TLT113i-miniEVM"
|
||||||
|
defconfig: "tlt113_minievm_defconfig"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
This directory is only used to store the files as a reference, the actual templates are stored on Drone server.
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue