site/.woodpecker/publish.yml

42 lines
1.1 KiB
YAML
Raw 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
2023-07-14 18:21:20 +00:00
#- /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:
2023-07-14 18:21:20 +00:00
path: "release_state.json"
event: "push"
depends_on:
- build_stable