-
Notifications
You must be signed in to change notification settings - Fork 0
/
goal.yaml
77 lines (74 loc) · 1.48 KB
/
goal.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
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
# simple alias: `goal run pods`
pods:
desc: Get nginx pods
cmd: kubectl
args:
- get
- pods
- -l
- app=nginx
# list your workspaces with `terraform workspace list`
terraform:
envs:
dev:
desc: Terraform apply on dev
cmd: terraform
args:
- apply
- -var-file
- vars/dev.tfvars
assert:
- terraform_workspace: dev
stage:
desc: Terraform apply on stage
cmd: terraform
args:
- apply
- -var-file
- vars/stage.tfvars
assert:
- terraform_workspace: stage
# list your contexts with `kubectl config get-contexts`
k8s:
envs:
dev:
desc: Kubectl apply on dev
cmd: kubectl
args:
- apply
- -f
- deployment.yaml
assert:
- kubectl_context: gke_project_region_dev
stage:
desc: Kubectl apply on stage
cmd: kubectl
args:
- apply
- -f
- deployment.yaml
assert:
- kubectl_context: gke_project_region_stage
# list your projects with `gcloud projects list`
gcloud:
envs:
dev:
desc: SSH to dev
cmd: gcloud
args:
- compute
- ssh
- dev-vm
- --zone=us-central1-c
assert:
- gcloud_project: dev-project
stage:
desc: SSH to stage
cmd: gcloud
args:
- compute
- ssh
- stage-vm
- --zone=us-central1-c
assert:
- gcloud_project: stage-project