-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
44 lines (37 loc) · 1.15 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
version: '2'
tasks:
default:
cmds:
- task: go-get
- task: go-vet
- task: go-test
go-get:
cmds:
- go get ./...
go-vet:
cmds:
- go vet ./...
go-test:
cmds:
- go test -count=1 -race -v -cover ./...
deploy-staging-aws:
cmds:
- task: add-postgres-connector-jar
vars:
namespace: insight
cluster: staging-insight-ef4412
- task: helm-update-deployment
vars:
namespace: insight
cluster: staging-insight-ef4412
deployment_name: insight
add-postgres-connector-jar:
cmds:
- curl -fL https://jdbc.postgresql.org/download/postgresql-42.2.9.jar -o /tmp/postgresql-42.2.9.jar
- kubectl config set-context {{.cluster}}
- kubectl --namespace {{.namespace}} create configmap postgres-jdbc-jar --from-file=/tmp/postgresql-42.2.9.jar || true
helm-update-deployment:
cmds:
- kubectl config set-context {{.cluster}}
- helm dependency update ./helm/chart/insight
- helm upgrade --install --namespace {{.namespace}} -f ./helm/chart/values-{{.cluster}}.yaml {{.deployment_name}} ./helm/chart/insight