diff --git a/.woodpecker/build.yml b/.woodpecker/build.yml index 26f7074..8254d8c 100644 --- a/.woodpecker/build.yml +++ b/.woodpecker/build.yml @@ -43,6 +43,17 @@ pipeline: - echo "${TARGET}" > gluon/output/stable/images/factory/${TARGET} - ls -alh gluon/output/stable/images/factory + 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/mutli/incoming/stable + source: gluon/output/stable/* + matrix: TARGET: - ath79-generic diff --git a/.woodpecker/upload.yml b/.woodpecker/upload.yml index baa3b38..078e39d 100644 --- a/.woodpecker/upload.yml +++ b/.woodpecker/upload.yml @@ -8,7 +8,7 @@ pipeline: commands: - ls -alh gluon/output/stable/images/factory - delete-old-firmware: + delete-old_move-new-firmware: image: appleboy/drone-ssh settings: host: 46.4.138.183 @@ -20,14 +20,5 @@ pipeline: script: - rm -rf /srv/fwuploads-testing/troisdorf/multi/stable/ - mkdir /srv/fwuploads-testing/troisdorf/multi/stable/ + - mv /srv/fwuploads-testing/troisdorf/mutli/{incoming/stable/*,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/*