2
0
Files
openwrt-configs/.drone.yml
Udo Waechter 1a88160855
Some checks are pending
continuous-integration/drone/push Build is running
openwrt moved to /mirrors in gitea
2024-03-21 19:40:16 +01:00

58 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 http://gitea.service.nr5/mirrors/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
- ./scripts/feeds install -a
- name: make-prepare
image: cr.wks/debian-stable-openwrt:latest
commands:
- cd openwrt
- make -j2 defconfig
- make -j2 download
- make -j2 clean
- name: make-world
image: cr.wks/debian-stable-openwrt:latest
commands:
- cd openwrt
- export FORCE_UNSAFE_CONFIGURE=1
- make -j2 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