-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
104 lines (91 loc) · 2.13 KB
/
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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
# https://taskfile.dev
version: "3"
vars: {}
env:
CGO_ENABLED: 0
output: prefixed
includes:
template:
dir: ./_template
taskfile: ./Taskfile.pipe.yml
docker:
dir: ./docker
taskfile: ./Taskfile.pipe.yml
gh-release-tracker:
dir: ./gh-release-tracker
taskfile: ./Taskfile.pipe.yml
markdown-toc:
dir: ./markdown-toc
taskfile: ./Taskfile.pipe.yml
node:
dir: ./node
taskfile: ./Taskfile.pipe.yml
select-env:
dir: ./select-env
taskfile: ./Taskfile.pipe.yml
semantic-release:
dir: ./semantic-release
taskfile: ./Taskfile.pipe.yml
terraform:
dir: ./terraform
taskfile: ./Taskfile.pipe.yml
update-docker-hub-readme:
dir: ./update-docker-hub-readme
taskfile: ./Taskfile.pipe.yml
tasks:
install:
desc: Installs the required dependencies on pull.
cmds:
- go mod vendor
sources:
- go.{sum,mod}
generates:
- "vendor/**"
format:
desc: Formats the current code base.
cmds:
- goimports -w .
- golangci-lint run --fix
lint:
desc: Lints the codebase with predefined rules.
cmds:
- golangci-lint run --timeout 10m
sources:
- "**/*.go"
update:
desc: Updates all the dependencies to their latest minor version.
cmds:
- go get -u all
- task: tidy
tidy:
desc: Tidies the go.mod file.
cmds:
- go mod tidy -compat={{ .GO_VERSION }}
- task: install
sources:
- "go.{mod,sum}"
packages:
internal: true
deps:
- task: "template:{{ .command }}"
- task: "docker:{{ .command }}"
- task: "gh-release-tracker:{{ .command }}"
- task: "markdown-toc:{{ .command }}"
- task: "node:{{ .command }}"
- task: "select-env:{{ .command }}"
- task: "semantic-release:{{ .command }}"
- task: "terraform:{{ .command }}"
- task: "update-docker-hub-readme:{{ .command }}"
build:
desc: Builds all the applications.
cmds:
- task: packages
vars:
command: build
docs:
desc: Generates documentation for all applications.
cmds:
- task: packages
vars:
command: docs