-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTaskfile.yml
More file actions
58 lines (45 loc) · 1.36 KB
/
Taskfile.yml
File metadata and controls
58 lines (45 loc) · 1.36 KB
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
version: "3"
vars:
IMAGE_NAME: registry.furqansoftware.net/tools/bullet
tasks:
install:
cmd: go install .
build:
cmd: go build -o bullet github.com/FurqanSoftware/bullet
build:alpine:
cmds:
- cd foundry && docker build -t bullet-foundry .
- >-
docker run
--rm -ti
-e GOCACHE=/go/src/github.com/FurqanSoftware/bullet/.go-build
-u $(id -u):$(id -g)
-v $(pwd):/go/src/github.com/FurqanSoftware/bullet
-w /go/src/github.com/FurqanSoftware/bullet
bullet-foundry
go build -buildvcs=false -o bullet github.com/FurqanSoftware/bullet
docker:image:build:
deps: [build:alpine]
requires:
vars: [VERSION]
cmd: docker build -t {{.IMAGE_NAME}}:{{.VERSION}} .
docker:image:push:
requires:
vars: [VERSION]
cmd: docker push {{.IMAGE_NAME}}:{{.VERSION}}
sentinel:build:
cmd: go build -o bullet-sentinel ./sentinel
sentinel:test:
cmd: go test ./sentinel/...
sentinel:embed:
cmds:
- GOOS=linux GOARCH=amd64 go build -o embed/bullet-sentinel-linux-amd64 ./sentinel
- GOOS=linux GOARCH=arm64 go build -o embed/bullet-sentinel-linux-arm64 ./sentinel
test:
cmd: go test -v ./...
lint:
cmd: staticcheck ./...
lint:tools:install:
cmd: go install honnef.co/go/tools/cmd/staticcheck@2025.1.1
clean:
cmd: go clean -i ./...