From 412025950ac6ca47667e7567bfa4f96b5ec5fa92 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 21 May 2023 19:22:58 +0200 Subject: [PATCH] Testing Upload to FW Server --- .woodpecker.yml | 75 +++++++++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 33 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 1951924..265a0ec 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -21,41 +21,51 @@ clone: recursive: true pipeline: -# site-multidomain: -# image: docker:git -# commands: -# - cd site -# - git checkout 2022.x-multidomain -# when: -# hostname: c02.fftdf.de -# -# 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 -j$(nproc) GLUON_BRANCH=${BRANCH} GLUON_RELEASE=$input_version-${BRANCH} GLUON_OUTPUTDIR=output/${BRANCH} + site-multidomain: + image: docker:git + commands: + - cd site + - git checkout 2022.x-multidomain + when: + hostname: c02.fftdf.de + + 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 -j$(nproc) GLUON_BRANCH=${BRANCH} GLUON_RELEASE=$input_version-${BRANCH} GLUON_OUTPUTDIR=output/${BRANCH} show-images-${TARGET}: <<: *default commands: - #- ls -alh - #- ls -alh output/ - #- ls -alh gluon/output/ - - mkdir test - - touch test/${BRANCH}.test - - echo "hallo" > test/${BRANCH}.test + - ls -alh + - ls -alh output/ + 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/${BRANCH}/ + - mkdir /srv/fwuploads-testing/troisdorf/multi/${BRANCH}/ + upload: image: appleboy/drone-scp settings: @@ -64,12 +74,11 @@ pipeline: key: from_secret: ssh-key strip_components: 0 - target: test/ - source: test/* + target: /srv/fwuploads-testing/troisdorf/multi/${BRANCH}/ + source: output/${BRANCH}/* matrix: TARGET: - - ath79-generic - x86-64 BRANCH: - stable