streamdeck-remote-server/.drone.yml

36 lines
964 B
YAML
Raw Permalink Normal View History

2019-05-22 04:12:25 +00:00
kind: pipeline
name: default
steps:
- name: binary
volumes:
- name: cache
path: /tmp/build
image: golang
commands:
- GOOS=windows GOARCH=amd64 go build -o /tmp/build/remote-server.exe
2019-05-22 04:14:42 +00:00
- name: package
volumes:
- name: cache
path: /tmp/build
image: alpine:latest
commands:
- apk add --update zip
2019-05-22 04:15:22 +00:00
- cd /tmp/build
- zip -r remote-server.zip remote-server.exe
2019-05-22 04:12:25 +00:00
- name: release
volumes:
- name: cache
path: /tmp/build
image: alpine:latest
environment:
TOKEN:
from_secret: gitea_token
commands:
- apk add --update curl
2019-05-22 04:14:42 +00:00
- export VERSION=`cat version.txt`
- curl -F "server=https://git.meow.tf" -F "token=$TOKEN" -F "repo=$DRONE_REPO" -F "name=v$VERSION" -F "tag_name=v$VERSION" -F "commit=$DRONE_COMMIT" -F "assets[]=@/tmp/build/remote-server.zip" https://api.meow.tf/gitea/release/publish
2019-05-22 04:12:25 +00:00
volumes:
- name: cache
temp: {}