9
0
Fork 0
openwrt-camera-image/.drone.yml

66 lines
1.5 KiB
YAML

---
kind: pipeline
type: kubernetes
name: default
steps:
- name: build
image: openwrtorg/imagebuilder:ath79-generic-openwrt-21.02
environment:
# TODO: git log -1 --pretty=%ct
SOURCE_DATE_EPOCH: 0
FILES: /drone/src/overlay/
PROFILE: glinet_gl-ar150
PACKAGES: |-
ca-certificates
curl
-dnsmasq
htop
iftop
-ip6tables
-kmod-ath
-kmod-ath9k
-kmod-ath9k-common
-kmod-ip6tables
-kmod-ipsec6
-kmod-iptunnel6
-kmod-ppp
kmod-video-uvc
-luci
-luci-proto-ipv6
-luci-proto-ppp
mjpg-streamer
mjpg-streamer-input-uvc
mjpg-streamer-output-http
nano
-odhcp6c
-odhcpd
openssh-server
openssl-util
pciutils
-ppp
-pppd
-ppp-mod-pppoe
prometheus-node-exporter-lua
prometheus-node-exporter-lua-netstat
prometheus-node-exporter-lua-openwrt
usbutils
v4l-utils
commands:
- mkdir -p overlay/etc/uci-defaults
- cd /home/build/openwrt
- make image PACKAGES="$(echo $PACKAGES | xargs)"
- mv $(find /home/build/openwrt/bin -iname *sysupgrade.bin) /drone/src/openwrt-camera-sysupgrade.bin
- name: deliver
image: drillster/drone-email
settings:
from: drone@k-space.ee
subject: Camera OpenWrt image
body: OpenWrt image
host: mail.k-space.ee
port: 465
username: drone
password:
from_secret: email_password
attachments: openwrt-camera-sysupgrade.bin