Fabian Bläse
20ecca34c0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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>
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
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 ]
|