-
-
Notifications
You must be signed in to change notification settings - Fork 815
Expand file tree
/
Copy pathTaskfile.yml
More file actions
47 lines (41 loc) · 895 Bytes
/
Taskfile.yml
File metadata and controls
47 lines (41 loc) · 895 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
47
version: '3'
env:
FOO: global
tasks:
dotenv-gen:
vars:
DOTENV: '{{.DOTENV | default "gen-env.txt" }}'
DOTVAL: '{{.DOTVAL | default "gen-bar" }}'
cmds:
- echo "BAR={{.DOTVAL}}" > {{.DOTENV}}
dotenv-dep-gen-default:
dotenv:
- gen-env.txt
deps:
- task: dotenv-gen
cmds:
- echo "$BAR" > dotenv-dep-gen-default.txt
dotenv-dep-gen-var:
dotenv:
- gen-var-env.txt
deps:
- task: dotenv-gen
vars:
DOTENV: gen-var-env.txt
DOTVAL: var-bar
cmds:
- echo "$BAR" > dotenv-dep-gen-var.txt
dotenv-gen-echo:
dotenv:
- gen-env.txt
cmds:
- echo $BAR
- echo "$BAR" > {{.ECHOFILE}}
dotenv-gen-seq:
cmds:
- task: dotenv-gen
vars:
DOTVAL: seq-bar
- task: dotenv-gen-echo
vars:
ECHOFILE: dotenv-gen-seq.txt