-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Taskfile.yml
48 lines (40 loc) · 1.04 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
# https://taskfile.dev
version: '3'
vars:
GITHUB_REPO_OWNER: xmlking
GITHUB_REPO_NAME: grpc-starter-kit
GITHUB_REPO_URL: https://github.com/{{.GITHUB_REPO_OWNER}}/{{.GITHUB_REPO_NAME}}.git
GOPATH:
sh: go env GOPATH
GIT_COMMIT:
sh: git log -n 1 --format=%h
GIT_DIRTY:
sh: git status --porcelain 2> /dev/null
ALL_GO_MOD_DIRS:
# sh: find . -type f -name 'go.mod' -exec dirname {} \; | sort
sh: find * -name 'go.mod' -mindepth 1 -exec dirname {} \; | sort
env:
FOO: foo
dotenv: [ '.env', '{{.ENV}}/.env.', '{{.HOME}}/.env' ]
includes:
config: ./config
proto: task/proto.yml
go: task/go.yml
mod: task/mod.yml
k3d: task/k3dt.yml
install: task/install.{{OS}}.yml
build: task/build.{{OS}}.yml
tasks:
proto:
desc: Lint, Clean and Generate go code from protos.
cmds:
- task: proto:default
default:
desc: Lint, Clean and Generate go code from protos.
cmds:
- task: proto:default
- task: build:build
- task: config:deploy
play:
cmds:
- echo {{.VAR_IN_DOTENV}}