Fix build config
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
e4c09de156
commit
13fe3583db
12
.drone.yml
12
.drone.yml
|
@ -9,6 +9,14 @@ steps:
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- GOOS=windows GOARCH=amd64 go build -o /tmp/build/remote-server.exe
|
- GOOS=windows GOARCH=amd64 go build -o /tmp/build/remote-server.exe
|
||||||
|
- name: package
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /tmp/build
|
||||||
|
image: alpine:latest
|
||||||
|
commands:
|
||||||
|
- apk add --update zip
|
||||||
|
- zip -r /tmp/build/remote-server.zip remote-server.exe
|
||||||
- name: release
|
- name: release
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
|
@ -19,8 +27,8 @@ steps:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
commands:
|
commands:
|
||||||
- apk add --update curl
|
- apk add --update curl
|
||||||
- export VERSION=`cat /tmp/build/version.txt`
|
- 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.exe" https://api.meow.tf/gitea/release/publish
|
- 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
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
1.2.2
|
Loading…
Reference in New Issue