-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yaml
46 lines (38 loc) · 992 Bytes
/
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'
dotenv: ['.env']
vars:
name: cosi-powerscale
version: 1.1.0
chart_version: 1.1.1
oci_repo: ghcr.io/japannext
helm_oci: ghcr.io/japannext/helm-charts
commit:
sh: git rev-parse --short HEAD
includes:
image:
taskfile: ./tasks/image.yaml
chart:
taskfile: ./charts/cosi-powerscale/Taskfile.yaml
dir: ./charts/cosi-powerscale
tasks:
build:
desc: Build and format the golang code locally
cmds:
- mkdir -p .build
- go fmt ./...
- go vet ./...
- go build -o .build/ ./...
develop:
desc: Run the development task to deploy in a local k8s cluster
cmds:
- task: build
- task: image:develop
- task: chart:develop
- task: sync
sync:
desc: Sync to a local k8s cluster (requires a .helmfile.yaml file)
cmds:
- helmfile -f .helmfile.yaml sync
- kubectl rollout restart deploy -l app.kubernetes.io/name=cosi-powerscale
- kubectl delete lease powerscale-cosi-japannext-co-jp-cosi