-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
40 lines (33 loc) · 860 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
40 lines (33 loc) · 860 Bytes
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
version: "3"
tasks:
all:
desc: Build the app and the vhs without auth
cmds:
- task release
- task no-auth
build:
desc: Build the app
cmds:
- GOFLAGS=-mod=mod go build -o bin/mobitag main.go
run:
desc: Run the app
cmds:
- GOFLAGS=-mod=mod go run main.go
clean:
desc: Remove all the build files
cmds:
- rm -rf bin/
- rm -rf dist/
- rm -rf media/*
auth:
desc: Build the vhs with the OPTNC_MOBITAGNC_API_KEY
cmds:
- vhs mobitag-auth.tape
no-auth:
desc: Build the vhs without the OPTNC_MOBITAGNC_API_KEY
cmds:
- vhs mobitag-no-auth.tape
release:
desc: Build all the binaries with goreleaser
cmds:
- goreleaser release --snapshot --clean