-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
46 lines (37 loc) · 822 Bytes
/
Copy pathTaskfile.yaml
File metadata and controls
46 lines (37 loc) · 822 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
41
42
43
44
45
46
version: 3
vars:
VERSION: v0.0.1
tasks:
test:
cmds:
- go test -v ./... -cover
build:
deps:
- test
cmds:
- go build -v .
install:
deps:
- build
cmds:
- go install -v
uninstall:
cmds:
- rm -rf $(go env GOPATH)/bin/go-scaffold
clean:
cmds:
- go clean
validate:
cmds:
- go run . -i testdata/input.json -o testoutput testdata/template
- tree testoutput
docker_build:
cmds:
- docker build . -t forrestloomis786/go-scaffold:latest --target production
- docker build . -t forrestloomis786/go-scaffold:{{.VERSION}} --target production
push:
deps:
- docker_build
cmds:
- docker push forrestloomis786/go-scaffold:latest
- docker push forrestloomis786/go-scaffold:{{.VERSION}}