From e4c09de156b27293924e4dea9418030f51b3172a Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 22 May 2019 00:12:25 -0400 Subject: [PATCH] Add drone config --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..86c4498 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,27 @@ +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 + - name: release + volumes: + - name: cache + path: /tmp/build + image: alpine:latest + environment: + TOKEN: + from_secret: gitea_token + commands: + - apk add --update curl + - export VERSION=`cat /tmp/build/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.exe" https://api.meow.tf/gitea/release/publish + +volumes: + - name: cache + temp: {} \ No newline at end of file