-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
46 lines (43 loc) · 1.17 KB
/
Taskfile.yaml
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'
tasks:
default:
desc: list tasks
silent: true
cmds:
- task --list
deploy:
desc: deploy infrastructures (add "-- -auto-approve" to run)
cmds:
- |
pkgx +gnu.org/coreutils env \
--split-string \
--ignore-environment \
USER="${USER}" \
HOME="${HOME}" \
PATH="${HOME}/.pkgx/bin:/bin:/usr/bin:/usr/local/bin" \
pkgx +gnu.org/bash^5 bash \
--login \
--noprofile \
--norc \
- <<'EOF'
eval "$(pkgx --shellcode)"
terraform apply {{ .CLI_ARGS }}
EOF
destroy:
desc: destroy infrastructures (add "-- -auto-approve" to run)
cmds:
- |
pkgx +gnu.org/coreutils env \
--split-string \
--ignore-environment \
USER="${USER}" \
HOME="${HOME}" \
PATH="${HOME}/.pkgx/bin:/bin:/usr/bin:/usr/local/bin" \
pkgx +gnu.org/bash^5 bash \
--login \
--noprofile \
--norc \
- <<'EOF'
eval "$(pkgx --shellcode)"
terraform destroy {{ .CLI_ARGS }}
EOF