generated from mrsimonemms/new
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
59 lines (52 loc) · 1.56 KB
/
Taskfile.yml
File metadata and controls
59 lines (52 loc) · 1.56 KB
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
version: '3'
vars:
TMP_IMG: ttl.sh/zigflow-studio
TMP_IMG_TAG: 24h
tasks:
commitlint:
desc: Run commitlint
cmds:
- npx commitlint --version
- npx commitlint --to HEAD
cruft-update:
desc: Check/update cruft template
cmds:
- |
if [ ! -f .cruft.json ]; then
echo "Cruft not configured"
else
cruft check || cruft update --skip-apply-ask --refresh-private-variables
fi
helm-img:
desc: Build and push temporary Helm image
cmds:
- docker build -t {{.TMP_IMG}}:{{.TMP_IMG_TAG}} .
- docker push {{.TMP_IMG}}:{{.TMP_IMG_TAG}}
helm:
desc: Deploy Helm chart locally
cmds:
- touch values.example.yaml
- |
helm upgrade \
--cleanup-on-fail \
--create-namespace \
--install \
--namespace zigflow \
--reset-values \
--rollback-on-failure \
--set image.pullPolicy=Always \
--set image.repository={{.TMP_IMG}} \
--set image.tag={{.TMP_IMG_TAG}} \
--values ./values.example.yaml \
--wait \
zigflow ./charts/studio
minikube:
desc: Start minikube and apply dev manifests
cmds:
- |
minikube profile list | grep minikube | grep OK || minikube start
scan:
desc: Scan for vulnerabilities
cmds:
- trivy config --severity HIGH,CRITICAL --format table --exit-code 1 charts/studio
- trivy image --severity HIGH,CRITICAL --format table --exit-code 1 --pkg-types os,library --ignore-unfixed ghcr.io/zigflow/studio