-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
63 lines (55 loc) · 1.49 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "3"
vars:
PLATFORM: nitroso
SERVICE: zinc
CHART_PATH: infra/root_chart
RELEASE_NAME: nitroso-zinc
includes:
helm: Taskfile.helm.yml
tear: tasks/Taskfile.tear.yml
stop: tasks/Taskfile.stop.yml
util: tasks/Taskfile.util.yml
tasks:
setup:
desc: "Setup the repository"
env:
PLATFORM: "{{.PLATFORM}}"
SERVICE: "{{.SERVICE}}"
cmds:
- ./scripts/local/secrets.sh
- go mod tidy
build:
desc: "Build the binary"
cmds:
- go build -o bin/{{.PLATFORM}}-{{.SERVICE}} .
run:
desc: "Runs the application with secrets"
cmds:
- ./scripts/local/run.sh ./config/dev.yaml go run . -- {{.CLI_ARGS}}
dev:
desc: "Dev the application with infrastructure"
cmds:
- ./scripts/local/dev.sh ./config/dev.yaml go run . -- {{.CLI_ARGS}}
dev:watch:
desc: "Dev the application with infrastructure in development mode"
cmds:
- ./scripts/local/dev.sh ./config/dev.yaml air -- {{.CLI_ARGS}}
latest:
desc: Get the latest versions of dependencies
cmds:
- task: util:latest-oci
vars:
NAME: bromine
OCI: ghcr.io/atomicloud/sulfoxide.bromine/sulfoxide-bromine
- task: util:latest-oci
vars:
NAME: zinc
OCI: ghcr.io/atomicloud/nitroso.zinc/root-chart
process-proxy:
desc: Process proxy from webshare
cmds:
- ./scripts/local/process_proxy.sh {{.CLI_ARGS}}
sdk:gen:
desc: Generate the SDK
cmds:
- ./scripts/local/gen-sdk.sh