38 lines
962 B
YAML
38 lines
962 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: kubernetes
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: ubuntu
|
||
|
settings:
|
||
|
mtu: 1300
|
||
|
environment:
|
||
|
# TODO: Do not run as root
|
||
|
FORCE_UNSAFE_CONFIGURE: 1
|
||
|
commands:
|
||
|
- apt-get update
|
||
|
- apt-get install -yq wget build-essential file cpio rsync bc unzip
|
||
|
- wget https://github.com/buildroot/buildroot/archive/2020.02.10.tar.gz
|
||
|
- tar xf *.gz
|
||
|
- rm -fv *.gz
|
||
|
- cd buildroot-*/
|
||
|
- cat board/pc/linux.config /drone/src/linux-defconfig > linux-defconfig
|
||
|
- cp /drone/src/config-seed .config
|
||
|
- make olddefconfig
|
||
|
- nice ionice make -j `nproc`
|
||
|
- cp output/images/bzImage /drone/src/provisioning-image-amd64
|
||
|
- name: deliver
|
||
|
image: drillster/drone-email
|
||
|
settings:
|
||
|
from: jenkins@k-space.ee
|
||
|
subject: OpenWrt image
|
||
|
body: OpenWrt image
|
||
|
host: mail.k-space.ee
|
||
|
port: 465
|
||
|
username: jenkins
|
||
|
password:
|
||
|
from_secret: email_password
|
||
|
attachments: provisioning-image-amd64
|