test the test

This commit is contained in:
Stefan Hoffmann 2023-05-25 14:27:47 +02:00
parent a0c717c8d7
commit 0a261b2857
Signed by: stefan
GPG Key ID: 8EFC7042BF8D5CDD

58
.woodpecker/test.yml Normal file
View File

@ -0,0 +1,58 @@
---
platform: linux/arm64
variables:
- &default
image: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-gluon-build:latest"
pull: true
environment:
- input_version=${CI_COMMIT_TAG}
- GLUON_SITEDIR=..
- FORCE_UNSAFE_CONFIGURE=1
- GLUON_TARGET=${TARGET}
- GLUON_DEPRECATED=1
when:
event: push
workspace:
base: /build
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
when:
event: push
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
build:
<<: *default
commands:
- cd gluon
- if [ -z $CI_COMMIT_TAG ]; then export input_version=dev; fi
- echo $input_version
- echo $CI_COMMIT_BRANCH
- make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=${CI_COMMIT_BRANCH} GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-${CI_COMMIT_BRANCH} GLUON_OUTPUTDIR=output/${CI_COMMIT_BRANCH}
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
matrix:
TARGET:
- ath79-generic