diff --git a/.woodpecker/next.yml b/.woodpecker/next.yml index 837a576..5766413 100644 --- a/.woodpecker/next.yml +++ b/.woodpecker/next.yml @@ -52,19 +52,23 @@ pipeline: - echo "${TARGET}" > gluon/output/${CI_COMMIT_BRANCH}/images/factory/${TARGET} - ls -alh gluon/output/${CI_COMMIT_BRANCH}/images/factory - publish: - image: woodpeckerci/plugin-gitea-release + upload: + image: appleboy/drone-scp settings: - base_url: https://git.freifunk-rhein-sieg.net - files: - - gluon/output/next/* - api_key: - from_secret: api_key - target: next - prerelease: true + host: 46.4.138.183 + user: fwupload + key: + from_secret: ssh-key + strip_components: 2 + target: /srv/fwuploads-testing/troisdorf/testing/next/ + source: gluon/output/next/* when: - event: tag + event: push + branch: next matrix: TARGET: - - ramips-mt7621 \ No newline at end of file + - ramips-mt7621 + +depends_on: + - prepare_next \ No newline at end of file diff --git a/.woodpecker/prepare.yml b/.woodpecker/prepare.yml index 7b02069..03422c6 100644 --- a/.woodpecker/prepare.yml +++ b/.woodpecker/prepare.yml @@ -20,4 +20,4 @@ pipeline: - mkdir -p /srv/fwuploads-testing/troisdorf/multi/next/experimental when: branch: stable - event: tag + event: tag \ No newline at end of file diff --git a/.woodpecker/prepare_next.yml b/.woodpecker/prepare_next.yml new file mode 100644 index 0000000..7d28856 --- /dev/null +++ b/.woodpecker/prepare_next.yml @@ -0,0 +1,20 @@ + --- +platform: linux/arm64 + +skip_clone: true + +pipeline: + prepare: + 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/testing/* + - mkdir -p /srv/fwuploads-testing/troisdorf/testing/ + when: + branch: next \ No newline at end of file