-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
90 lines (78 loc) · 2.27 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
workspace:
base: /go
path: src/github.com/Hundemeier/simple-audio
clone:
git:
image: plugins/git
depth: 50
tags: true
pipeline:
backend:
image: golang
group: dep
commands:
- go get -v -d #only download and not build
frontend:
image: node
group: dep
commands:
- cd webgui/
- npm install
- npm run build
pre-build:
image: golang
commands:
- go get github.com/jteeuwen/go-bindata/...
- go get github.com/elazarl/go-bindata-assetfs/...
- go-bindata-assetfs webgui/dist/...
build-win-64:
image: golang
group: build
commands:
- GOOS=windows GOARCH=amd64 go build -o out/simpleAudio_win_amd64.exe
build-win-32:
image: golang
group: build
commands:
- GOOS=windows GOARCH=386 go build -o out/simpleAudio_win_386.exe
build-linux-64:
image: golang
group: build
commands:
- apt update && apt install -y libasound2-dev
- GOOS=linux GOARCH=amd64 go build -o out/simpleAudio_linux_amd64
discord:
image: appleboy/drone-discord
group: upload
secrets: [ discord_webhook_id, discord_webhook_token ]
message: |
{{ repo.name }}: {{ build.status }}
author: {{build.author}} on branch {{build.branch}} with {{build.commit}}
build: {{build.number}} after {{build.event}}
{{build.link}}
github_release:
image: plugins/github-release
group: upload
files: out/*
secrets: [ github_token ]
draft: true
when:
event: tag
upload_webdav_win64:
image: vividboarder/drone-webdav
group: upload
file: out/simpleAudio_win_amd64.exe
destination: https://nextcloud.helmutzett.p7.de:10000/remote.php/dav/files/drone/uploads/
secrets: [webdav_username, webdav_password]
upload_webdav_win32:
image: vividboarder/drone-webdav
group: upload
file: out/simpleAudio_win_386.exe
destination: https://nextcloud.helmutzett.p7.de:10000/remote.php/dav/files/drone/uploads/
secrets: [webdav_username, webdav_password]
upload_webdav_linux64:
image: vividboarder/drone-webdav
group: upload
file: out/simpleAudio_linux_amd64
destination: https://nextcloud.helmutzett.p7.de:10000/remote.php/dav/files/drone/uploads/
secrets: [webdav_username, webdav_password]