forked from freifunk-franken/firmware
ci: add woodpecker build pipelines
Add pipeline configuration for Woodpecker CI. This tells Woodpecker how to build our firmware, so it can automatically generate firmware images for all commits to the master branch. Continuous integration not only helps spotting build errors early, but also allows non-developers to test the firmware during development. Signed-off-by: Fabian Bläse <fabian@blaese.de> Acked-by: Christian Dresel <freifunk@dresel.systems>
This commit is contained in:
parent
880d56d52c
commit
20ecca34c0
|
@ -0,0 +1,45 @@
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
settings:
|
||||||
|
tags: true
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
buildall-layer3:
|
||||||
|
image: openwrtorg/imagebuilder
|
||||||
|
commands:
|
||||||
|
- export HOME=/home/build/openwrt
|
||||||
|
- sudo chown -R build:build .
|
||||||
|
- git config --global user.email "ci@fff.community"
|
||||||
|
- git config --global user.name "FFF CI"
|
||||||
|
- ./buildscript selectvariant layer3
|
||||||
|
- ./buildscript selectbsp bsp/ath79-generic.bsp
|
||||||
|
- ./buildscript prepare
|
||||||
|
- ./buildscript buildall
|
||||||
|
|
||||||
|
buildall-node:
|
||||||
|
image: openwrtorg/imagebuilder
|
||||||
|
commands:
|
||||||
|
- export HOME=/home/build/openwrt
|
||||||
|
- sudo chown -R build:build .
|
||||||
|
- git config --global user.email "ci@fff.community"
|
||||||
|
- git config --global user.name "FFF CI"
|
||||||
|
- ./buildscript selectvariant node
|
||||||
|
- ./buildscript selectbsp bsp/ath79-generic.bsp
|
||||||
|
- ./buildscript prepare
|
||||||
|
- ./buildscript buildall
|
||||||
|
|
||||||
|
distribute:
|
||||||
|
image: alpine/git
|
||||||
|
volumes:
|
||||||
|
- /var/lib/woodpecker/artifacts:/var/run/artifacts
|
||||||
|
commands:
|
||||||
|
- rm -rf /var/run/artifacts/$(git describe --tags)
|
||||||
|
- mkdir -p /var/run/artifacts/$(git describe --tags)
|
||||||
|
- cp -r bin/* /var/run/artifacts/$(git describe --tags)/
|
||||||
|
- echo
|
||||||
|
- echo
|
||||||
|
- echo "You can download the built firmware images here:"
|
||||||
|
- echo "https://ci.fff.community/artifacts/$(git describe --tags)"
|
||||||
|
|
||||||
|
branches: [ master ]
|
Loading…
Reference in New Issue