39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
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
|
|
when:
|
|
path: "release_state.json"
|
|
|
|
publish-firmware:
|
|
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"
|
|
event: "push" |