2
0
Files
openwrt-configs/.drone.yml
Udo Waechter 417593b8f0
Some checks reported errors
continuous-integration/drone/push Build was killed
here we go
2024-02-28 14:58:42 +01:00

54 lines
1.3 KiB
YAML

kind: pipeline
name: openwrt
type: docker
platform:
os: linux
arch: arm64
trigger:
branch:
- main
event:
include:
- push
steps:
- name: openwrt
image: bitnami/git
commands:
- git clone -b openwrt-23.05 --single-branch https://github.com/openwrt/openwrt.git
- name: setup
image: cr.wks/debian-stable-openwrt:latest
commands:
- ls -la
- cp -v config-DIR825-rndis openwrt/.config
- name: feeds
image: cr.wks/debian-stable-openwrt:latest
commands:
- cd openwrt && ./scripts/feeds update -a
- cd openwrt && ./scripts/feeds install -a
- name: make-prepare
image: cr.wks/debian-stable-openwrt:latest
commands:
- cd openwrt && make -j2 defconfig
- cd openwrt && make -j2 download
- cd openwrt && make -j2 clean
- name: make-world
image: cr.wks/debian-stable-openwrt:latest
commands:
- cd openwrt && make -j4 world
- name: deploy
image: cr.wks/drone/drone-rsync:latest
settings:
hosts: ["ebin01.wks"]
source: openwrt/bin/
target: /data/raid1-ssd/app-data/openwrt/
user: admini
#exclude: ['sites/default', 'files/kmm', 'files/tmp', '.git*', '*drone.yml', '.settings', '.buildpath', '.editorconfig', '.project']
args: '-v --delete'
log_level: quiet
key:
from_secret: admini-ebin01-ssh-rsa
command_timeout: 15m