-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
73 lines (71 loc) · 1.46 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
# https://taskfile.dev
version: "3"
tasks:
default:
cmds:
- go mod init terraform_test.go || true
- go test -v -timeout 30m
dir: test
env:
PGPASSFILE: "/workspace/question_3/.pgpass"
up:
cmds:
- docker compose up -d
bash:
interactive: true
cmds:
- docker compose exec development bash
rebuild:
cmds:
- docker compose up -d --build
- docker exec hasteheart-development-1 file /usr/local/bin/dockerize
env:
BUILDKIT_PROGRESS: plain
test:
cmds:
- pre-commit run --all-files --verbose
q1:
cmds:
- terraform init
- terraform apply --auto-approve
silent: true
dir: "./question_1/"
q2:
cmds:
- terraform init
- terraform apply --auto-approve
silent: true
dir: "./question_2/"
q3:
cmds:
- terraform init
- terraform apply --auto-approve
silent: true
dir: "./question_3/"
destroy:
cmds:
- task: q1d
- task: q2d
- task: q3d
q1d:
cmds:
- terraform destroy --auto-approve
silent: true
dir: "./question_1/"
q2d:
cmds:
- terraform destroy --auto-approve
silent: true
dir: "./question_2/"
q3d:
cmds:
- terraform destroy --auto-approve
silent: true
dir: "./question_3/"
psql:
cmds:
- psql --host "localhost" --username "user" --dbname "hasteheart"
env:
PGPASSFILE: "./.pgpass"
interactive: true
dir: "./question_3/"