meta: attempt automatic deployment to temporary domain
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
when:
|
||||||
|
- event: release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build horsebot
|
||||||
|
image: golang:1.27-alpine
|
||||||
|
commands:
|
||||||
|
- go build -o /build/horsebot ./cmd/horsebot
|
||||||
|
- name: build zenno
|
||||||
|
image: node:24-alpine
|
||||||
|
commands:
|
||||||
|
- cd zenno
|
||||||
|
- npm ci
|
||||||
|
- npm run build
|
||||||
|
- tar czf /build/zenno.tar.gz ./build /build/horsebot
|
||||||
|
- name: scp artifacts
|
||||||
|
image: appleboy/drone-scp
|
||||||
|
settings:
|
||||||
|
host: zenno2.sunturtle.xyz
|
||||||
|
user: root
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
port: 22
|
||||||
|
fingerprint: gAmpGD1vOyv6c5WvwYJxbvelXWQD02+/yJ/7bkxzAEo
|
||||||
|
target: zenno.tar.gz
|
||||||
|
source:
|
||||||
|
- /build/zenno.tar.gz
|
||||||
|
- name: invoke remote deploy script
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host: zenno2.sunturtle.xyz
|
||||||
|
user: root
|
||||||
|
key:
|
||||||
|
from_secret: ssh_key
|
||||||
|
port: 22
|
||||||
|
fingerprint: gAmpGD1vOyv6c5WvwYJxbvelXWQD02+/yJ/7bkxzAEo
|
||||||
|
script:
|
||||||
|
- /root/zenno.sh
|
||||||
Reference in New Issue
Block a user