From 52dcd7f4ec7aba56ec5e78ae4fca843db0a814f0 Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Tue, 23 May 2023 09:14:33 +0200 Subject: [PATCH] testing multi pipeline build, this will probably not work --- .woodpecker.yml | 93 ------------------------------------------ .woodpecker/build.yml | 68 ++++++++++++++++++++++++++++++ .woodpecker/upload.yml | 33 +++++++++++++++ 3 files changed, 101 insertions(+), 93 deletions(-) delete mode 100644 .woodpecker.yml create mode 100644 .woodpecker/build.yml create mode 100644 .woodpecker/upload.yml diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 7664038..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,93 +0,0 @@ -variables: - - &default - image: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-gluon-build:latest" - pull: true - environment: - - input_version=v2022.1.4 - - GLUON_SITEDIR=../site - - FORCE_UNSAFE_CONFIGURE=1 - - GLUON_TARGET=${TARGET} - - GLUON_DEPRECATED=1 - -workspace: - base: /build - -clone: - git: - image: woodpeckerci/plugin-git - settings: - recursive: true - -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-${TARGET}: - <<: *default - commands: - - cd gluon - - make -j10 GLUON_AUTOUPDATER_BRANCH=stable GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-stable GLUON_OUTPUTDIR=output/stable - - show-images-${TARGET}: - <<: *default - commands: - - ls -alh gluon/output/stable/images/factory - - delete-old-firmware: - image: appleboy/drone-ssh - settings: - host: 46.4.138.183 - username: fwupload - key: - from_secret: ssh-key - port: 22 - command_timeout: 120m - script: - #- ./rsync-backup-multi.sh - - rm -rf /srv/fwuploads-testing/troisdorf/multi/stable/ - - mkdir /srv/fwuploads-testing/troisdorf/multi/stable/ - - upload: - image: appleboy/drone-scp - settings: - host: 46.4.138.183 - user: fwupload - key: - from_secret: ssh-key - strip_components: 0 - target: /srv/fwuploads-testing/troisdorf/multi/stable/ - source: gluon/output/stable/* - -matrix: - TARGET: - - ath79-generic - - ath79-mikrotik - - ath79-nand - - bcm27xx-bcm2708 - - bcm27xx-bcm2709 - - ipq40xx-generic - - ipq40xx-mikrotik - - ipq806x-generic - - lantiq-xrx200 - - lantiq-xway - - mediatek-mt7622 - - mpc85xx-p1010 - - mpc85xx-p1020 - - ramips-mt7620 - - ramips-mt7621 - - ramips-mt76x8 - - realtek-rtl838x - - rockchip-armv8 - - sunxi-cortexa7 - - x86-64 - - x86-generic - - x86-geode - - x86-legacy diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml new file mode 100644 index 0000000..fab3e35 --- /dev/null +++ b/.woodpecker/build.yml @@ -0,0 +1,68 @@ +variables: + - &default + image: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-gluon-build:latest" + pull: true + environment: + - input_version=v2022.1.4 + - GLUON_SITEDIR=../site + - FORCE_UNSAFE_CONFIGURE=1 + - GLUON_TARGET=${TARGET} + - GLUON_DEPRECATED=1 + +workspace: + base: /build + +clone: + git: + image: woodpeckerci/plugin-git + settings: + recursive: true + +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-${TARGET}: + <<: *default + commands: + - cd gluon + - make -j10 GLUON_AUTOUPDATER_BRANCH=stable GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-stable GLUON_OUTPUTDIR=output/stable + + show-images-${TARGET}: + <<: *default + commands: + - ls -alh gluon/output/stable/images/factory + +matrix: + TARGET: + - ath79-generic + # - ath79-mikrotik + # - ath79-nand + # - bcm27xx-bcm2708 + # - bcm27xx-bcm2709 + # - ipq40xx-generic + # - ipq40xx-mikrotik + # - ipq806x-generic + # - lantiq-xrx200 + # - lantiq-xway + # - mediatek-mt7622 + # - mpc85xx-p1010 + # - mpc85xx-p1020 + # - ramips-mt7620 + # - ramips-mt7621 + # - ramips-mt76x8 + # - realtek-rtl838x + # - rockchip-armv8 + # - sunxi-cortexa7 + # - x86-64 + # - x86-generic + # - x86-geode + # - x86-legacy diff --git a/.woodpecker/upload.yml b/.woodpecker/upload.yml new file mode 100644 index 0000000..baa3b38 --- /dev/null +++ b/.woodpecker/upload.yml @@ -0,0 +1,33 @@ +workspace: + base: /build + +pipeline: + show-images-${TARGET}: + image: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-gluon-build:latest" + pull: true + commands: + - ls -alh gluon/output/stable/images/factory + + delete-old-firmware: + image: appleboy/drone-ssh + settings: + host: 46.4.138.183 + username: fwupload + key: + from_secret: ssh-key + port: 22 + command_timeout: 120m + script: + - rm -rf /srv/fwuploads-testing/troisdorf/multi/stable/ + - mkdir /srv/fwuploads-testing/troisdorf/multi/stable/ + + upload: + image: appleboy/drone-scp + settings: + host: 46.4.138.183 + user: fwupload + key: + from_secret: ssh-key + strip_components: 0 + target: /srv/fwuploads-testing/troisdorf/multi/stable/ + source: gluon/output/stable/*