diff --git a/.woodpecker/publish.yml b/.woodpecker/publish.yml index 9f6207c..d0295c4 100644 --- a/.woodpecker/publish.yml +++ b/.woodpecker/publish.yml @@ -18,5 +18,21 @@ pipeline: from_secret: ssh-key target: /srv/fwuploads-tmp/bin/ source: release_state.json + when: + path: "release_state.json" + + prepare: + image: appleboy/drone-ssh + settings: + host: 46.4.138.183 + username: fwupload + key: + from_secret: ssh-key + port: 22 + command_timeout: 120m + script: + - /srv/fwuploads-tmp/bin/go-gluon-publish -s /srv/fwuploads-tmp/troisdorf/multi/ -t /srv/fwuploads/troisdorf/multi/ -b stable -d + - /srv/fwuploads-tmp/bin/go-gluon-publish -s /srv/fwuploads-tmp/troisdorf/multi/ -t /srv/fwuploads/troisdorf/multi/ -b beta -d + - /srv/fwuploads-tmp/bin/go-gluon-publish -s /srv/fwuploads-tmp/troisdorf/multi/ -t /srv/fwuploads/troisdorf/multi/ -b experimental -d when: path: "release_state.json" \ No newline at end of file diff --git a/release_state.json b/release_state.json index eff0135..b3ce02b 100644 --- a/release_state.json +++ b/release_state.json @@ -1,5 +1,5 @@ { - "stable": "v2022.1.4", - "beta": "v2022.1.5", - "experimental": "v2022.1.4" + "stable": "v2020.2.2", + "beta": "v2020.2.2", + "experimental": "v2020.2.2" } \ No newline at end of file