-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.yaml
98 lines (86 loc) · 3.01 KB
/
tasks.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
includes:
- create: ./tasks/create.yaml
- deploy: ./tasks/deploy.yaml
- lint: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/lint.yaml
- actions: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/actions.yaml
- setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/setup.yaml
tasks:
- name: dev-rke2
description: The create-deploy dev loop
actions:
- task: create-bundle-rke2
- task: deploy-dev-rke2
- name: deps
description: Install development dependencies
actions:
- task: lint:deps
- cmd: CMD=pip && which $CMD || CMD=pip3 && $CMD install -Ivq "shellcheck-py>=0.10.0.1"
description: "Install shellcheck-py via pip"
- cmd: CMD=pip && which $CMD || CMD=pip3 && $CMD install -Ivq "pre-commit>=4.0.1"
description: "Install pre-commit via pip"
- cmd: "echo '[*] Please ensure your path is set correctly, for example: \nexport PATH=$PATH:~/.local/bin:~/venv/bin'"
description: "Note to set your path"
- name: precommit
description: Run git precommit hooks
actions:
- cmd: pre-commit run --all-files
################
# Create
################
- name: create-bundle
description: Create all UDS Bundles
actions:
- task: create-bundle-dependencies
- task: create:rke2-bundle
- name: create-bundle-rke2
description: Create the RKE2 UDS Bundle
actions:
- task: create-bundle-dependencies
- task: create:rke2-bundle
- name: create-bundle-dependencies
description: Create all dependencies for the bundle
actions:
- task: create:build-dir
- task: create:database-manifest-packages
- task: create:keycloak-config-wrapper-package
- task: create:object-store-packages
- task: create:additional-manifests-package
- task: create:nutanix-csi-package
- task: create:cert-manager-package
- task: create:trust-manager-package
- task: create:trust-bundles-package
################
# Deploy
################
- name: uds-version
description: Check version of UDS being used to deploy
actions:
- task: deploy:uds-version
- name: deploy-dev-rke2
description: Deploy rke2bundle to dev cluster
actions:
- task: deploy:deploy-bundle
with:
bundle_type: rke2
- name: deploy-test-rke2
description: Deploy bundle to test cluster
actions:
- task: deploy:deploy-bundle
with:
config_dir: ./scratch/configs/test
bundle_type: rke2
- name: deploy-dev-published
description: Deploy published oci bundle to dev cluster
actions:
- task: deploy:deploy-published
- name: deploy-test-published
description: Deploy published oci bundle to test cluster
actions:
- task: deploy:deploy-published
with:
config_dir: ./scratch/configs/test
#### Clean ####
- name: clean
description: Clean up local dev build contents
actions:
- cmd: rm -rf ./build/*