site/.woodpecker/publish.yml

38 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2023-06-02 17:11:09 +00:00
---
platform: linux/arm64
workspace:
base: /build
clone:
git:
image: woodpeckerci/plugin-git
pipeline:
upload-version:
image: appleboy/drone-scp
settings:
host: 46.4.138.183
user: fwupload
key:
from_secret: ssh-key
target: /srv/fwuploads-tmp/bin/
source: release_state.json
2023-06-02 18:07:22 +00:00
when:
path: "release_state.json"
2023-06-02 18:15:24 +00:00
publish-firmware:
2023-06-02 18:07:22 +00:00
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
2023-06-02 17:11:09 +00:00
when:
path: "release_state.json"