forked from lreimer/k3s-ai-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
68 lines (57 loc) · 1.76 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# https://taskfile.dev
version: '3'
dotenv: ['.env', '{{.HOME}}/.env']
env:
REPO_NAME: k3s-ai-platform
GITHUB_USER: lreimer
GCP_PROJECT: cloud-native-experience-lab
vars: {}
tasks:
default:
desc: If running only "task" print all available tasks
cmd: task --list-all
silent: true
brew:
desc: Install tool dependencies with brew
internal: true
run: once
platforms: [darwin, linux]
cmd: brew bundle --no-lock --verbose
status:
- brew bundle check --verbose
flux-bootstrap:
desc: Bootstrap Flux
silent: true
requires:
vars: [GITHUB_USER, GITHUB_TOKEN, REPO_NAME]
cmd: |
flux bootstrap github \
--owner={{.GITHUB_USER}} \
--repository={{.REPO_NAME}} \
--branch=main \
--path=./platform/foundation \
--components-extra=image-reflector-controller,image-automation-controller \
--read-write-key \
--personal
flux-sync:
desc: Reconcile flux-system
silent: true
cmd: flux reconcile source git flux-system
flux-status:
desc: Show the status of the flux-system
silent: true
cmd: flux get all --all-namespaces
create-secrets:
desc: Create the OpenAI secret
silent: true
requires:
vars: [OPENAI_API_KEY]
cmd: kubectl create secret generic openai-api-key --from-literal=OPENAI_API_KEY={{.OPENAI_API_KEY}} --from-literal=OPENAI_APIKEY={{.OPENAI_API_KEY}}
gcp-secret:
desc: Create the GCP secret
silent: true
cmd: kubectl create secret generic gcp-secret -n crossplane-system --from-file=creds={{.HOME}}/.gcp/credentials.json
aws-secret:
desc: Create the AWS secret
silent: true
cmd: kubectl create secret generic aws-secret -n crossplane-system --from-file=creds={{.HOME}}/.aws/credentials