/
Taskfile.yml
38 lines (33 loc) · 962 Bytes
/
Taskfile.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
version: 3
tasks:
build-all:
cmds:
- task: clear
- mkdir dist
- task: build-service
- task: build-plugin
- task: build-rclient
- echo "Build done"
build-service:
dir: auth-service
cmds:
- go build -o auth-service ./cmd/auth-service/main.go
- mkdir ../dist/auth-service
- cp auth-service ../dist/auth-service/auth-service
- cp config/config.yml ../dist/auth-service/config.yml
build-plugin:
dir: openvpn-plugin/
cmds:
- cargo build --release
- mkdir ../dist/openvpn-plugin
- cp target/release/libopenvpn_auth_plugin.so ../dist/openvpn-plugin/libopenvpn_auth_plugin.so
- cp config/config.yml ../dist/openvpn-plugin/config.yml
build-rclient:
dir: radius-client/
cmds:
- go build -o radius-client
- mkdir ../dist/radius-client
- mv radius-client ../dist/radius-client/radius-client
clear:
cmds:
- rm -rf dist