-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathTaskfile.yaml
53 lines (45 loc) · 1.14 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
version: '3'
env:
GITHUB_USER: merusso
dotenv:
- .env
- .ignore/.env
includes:
alpaca:
taskfile: ./alpaca
dir: ./alpaca
badger:
taskfile: ./badger
dir: ./badger
camel:
taskfile: ./camel
dir: ./camel
dingo:
taskfile: ./dingo
dir: ./dingo
tasks:
bootstrap:
desc: Bootstrap Flux on a new cluster
# cmd: flux bootstrap github
# --owner={{.GITHUB_USER}}
# --repository=clusters-flux
# --branch=main
# --path=./alpaca
# --personal
cmds:
- task: install
# - task: bootstrap-git-secret
- task: camel:apply
bootstrap-git-secret:
cmd: >
flux create secret git github-token --username $GITHUB_USER --password $GITHUB_TOKEN
--url=https://github.com/$GITHUB_USER/clusters-flux.git
install: flux install
suspend: flux suspend kustomization --all && flux suspend helmrelease --all
resume: flux resume kustomization --all && flux resume helmrelease --all
uninstall:
desc: Uninstall Flux on a cluster
summary: |
Uninstall Flux on a cluster.
Note: Does not remove components installed via Flux
cmd: flux uninstall