site/.woodpecker/next.yml

81 lines
1.7 KiB
YAML
Raw Normal View History

2023-05-25 12:27:47 +00:00
---
platform: linux/arm64
variables:
- &default
image: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-gluon-build:latest"
pull: true
environment:
2023-05-25 19:55:12 +00:00
- input_version=next
2023-05-25 12:27:47 +00:00
- GLUON_SITEDIR=..
- FORCE_UNSAFE_CONFIGURE=1
- GLUON_TARGET=${TARGET}
- GLUON_DEPRECATED=1
2023-08-20 13:18:56 +00:00
- GLUON_AUTOUPDATER_BRANCH=next
2023-05-25 12:27:47 +00:00
when:
event: push
2023-05-25 18:55:58 +00:00
branch: next
2023-05-25 12:27:47 +00:00
workspace:
base: /build
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
when:
event: push
2023-05-25 18:55:58 +00:00
branch: next
2023-05-25 12:27:47 +00:00
pipeline:
make_update:
<<: *default
commands:
- cd gluon
- make update
patch-iw-to-iw-full:
<<: *default
commands:
- sed -i 's/+iw /+iw-full /g' gluon/openwrt/package/kernel/mac80211/Makefile
2023-08-20 13:18:56 +00:00
#build:
# <<: *default
# commands:
# - cd gluon
# - make -j$(nproc) GLUON_RELEASE=$input_version-${CI_COMMIT_BRANCH} GLUON_OUTPUTDIR=output/next
2023-05-25 12:27:47 +00:00
2023-08-20 12:30:26 +00:00
manifest:
<<: *default
commands:
- cd gluon
- make manifest GLUON_RELEASE=$input_version-${CI_COMMIT_BRANCH} GLUON_OUTPUTDIR=output/next
2023-05-25 12:27:47 +00:00
list_images:
<<: *default
commands:
- mkdir -p gluon/output/${CI_COMMIT_BRANCH}/images/factory
- echo "${TARGET}" > gluon/output/${CI_COMMIT_BRANCH}/images/factory/${TARGET}
- ls -alh gluon/output/${CI_COMMIT_BRANCH}/images/factory
2023-05-25 19:12:17 +00:00
upload:
image: appleboy/drone-scp
2023-05-25 18:55:58 +00:00
settings:
2023-05-25 19:12:17 +00:00
host: 46.4.138.183
user: fwupload
key:
from_secret: ssh-key
strip_components: 2
target: /srv/fwuploads-tmp/troisdorf/testing/
2023-05-25 19:12:17 +00:00
source: gluon/output/next/*
2023-05-25 19:00:44 +00:00
when:
2023-05-25 19:12:17 +00:00
event: push
branch: next
2023-05-25 18:55:58 +00:00
2023-05-25 12:27:47 +00:00
matrix:
TARGET:
2023-05-25 19:12:17 +00:00
- ramips-mt7621
depends_on:
- prepare_next