-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.yaml
172 lines (147 loc) · 6.34 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# TODO: renovate setup
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/uds-cli/v0.10.4/tasks.schema.json
includes:
- create: ./tasks/create.yaml
- deploy: ./tasks/deploy.yaml
- publish: ./tasks/publish.yaml
- setup: ./tasks/setup.yaml
- test: ./tasks/test.yaml
variables:
- name: VERSION
description: "Explicitly set the version, overriding the official release tag"
# x-release-please-start-version
default: "0.6.0"
# x-release-please-end
# Explicitly set these environment variables to change the defaults
- name: JOIN_TOKEN
description: "Cluster join token for nodes, set by the master"
default: "my-test-token"
- name: NETWORK_INTERFACES
description: "Interface on which to perform L2 advertisement"
default: "wlp0s20f3"
- name: DOMAIN
description: "The default domain to use for gateway and CoreDNS"
default: "uds.local"
- name: BUCKET_PERSISTENCE_SIZE
description: "The default MinIO bucket size"
default: "50Gi"
tasks:
#########
# UTILITY
#########
- name: create-tls-local-path-dev
description: "Utility to re-create TLS cert and key, and inject them into the uds-config.yaml"
actions:
- task: create:tls
with:
flavor: local-path
bundleVersion: dev
certConfDir: bundles/dev
###########################
# CREATE AND DEPLOY BUNDLES
###########################
- name: uds-rke2-local-path-core
description: "Bootstrap a new RKE2 cluster, with the Local Path Provisioner + MinIO Zarf Init and UDS Core packages (LATEST)"
actions:
- task: create:logical-volume
- task: create:local-path-core-bundle
# TLS certificates are pre-packaged with UDS Core for *.uds.dev, which is the default domain for LATEST
# Please see `docs/DNS-TLS.md` if the deployment environment requires different CA, TLS, etc.
- cmd: |
mkdir -p build/packages/local-path
touch build/packages/local-path/uds-config-${VERSION}.yaml
cp bundles/latest/local-path-core/uds-config.yaml build/packages/local-path/uds-config-${VERSION}.yaml
- task: deploy:local-path-core-bundle
- name: uds-rke2-local-path-core-dev
description: "Bootstrap a new RKE2 cluster, with the Local Path Provisioner + MinIO Zarf Init and UDS Core packages (DEV)"
actions:
- description: "Use the `dev` version to create all bundle packages"
cmd: sudo uds run create:local-path-core-bundle-packages --set VERSION=dev --log-level warn --no-progress -a amd64
- task: create:logical-volume
# Automatically generated and signed CA and TLS certificates for *.uds.local
# Please see `docs/DNS-TLS.md` if the deployment environment requires different CA, TLS, etc.
- task: create-tls-local-path-dev
- task: create:local-path-core-bundle-dev
- task: deploy:local-path-core-bundle-dev
##############################
# RELEASE PACKAGES AND BUNDLES
##############################
- name: release-dev
description: "Builds and publishes all Zarf packages and Bundles in the repository (DEV)"
actions:
- task: release-packages-dev
- task: release-bundles-dev
- name: release-packages-dev
description: "Builds and publishes all Zarf packages in the repository (DEV)"
actions:
- description: "Use the `dev` version to run a package release"
cmd: sudo uds run release-packages --set VERSION=dev --log-level warn --no-progress -a amd64
- name: release-bundles-dev
description: "Builds and publishes all UDS bundles in the repository (DEV)"
actions:
- task: create:local-path-core-bundle-dev
- description: "Use the `dev` version to run a bundle release"
cmd: sudo uds run publish:local-path-core-bundle --set VERSION=dev --log-level warn --no-progress -a amd64
######################################
# NOT FOR LOCAL USE, FOR PIPELINE ONLY
######################################
- name: release
description: "Builds and publishes all Zarf packages and Bundles in the repository (LATEST)"
actions:
- task: release-packages-with-clean
- task: release-bundles
- name: release-packages
description: "Builds and publishes all Zarf packages in the repository WITHOUT cleaning artifacts (LATEST)"
actions:
# Standard uds-rke2-local-path-core Zarf packages
- task: create:uds-rke2
- task: publish:uds-rke2
- task: create:uds-rke2-infrastructure
- task: publish:uds-rke2-infrastructure
- task: create:uds-rke2-exemptions-local-path
- task: publish:uds-rke2-exemptions-local-path
- task: create:local-path
- task: publish:local-path
- task: create:local-path-init
- task: publish:local-path-init
- task: create:minio
- task: publish:minio
# Extra, optional Zarf packages
- task: create:leapfrogai-workarounds
- task: publish:leapfrogai-workarounds
- task: create:nvidia-gpu-operator
- task: publish:nvidia-gpu-operator
- name: release-packages-with-clean
description: "Builds and publishes all Zarf packages in the repository (LATEST)"
actions:
# Standard uds-rke2-local-path-core Zarf packages
- task: create:uds-rke2
- task: publish:uds-rke2
- task: setup:clean-build-artifacts
- task: create:uds-rke2-infrastructure
- task: publish:uds-rke2-infrastructure
- task: setup:clean-build-artifacts
- task: create:uds-rke2-exemptions-local-path
- task: publish:uds-rke2-exemptions-local-path
- task: setup:clean-build-artifacts
- task: create:local-path
- task: publish:local-path
- task: setup:clean-build-artifacts
- task: create:local-path-init
- task: publish:local-path-init
- task: setup:clean-build-artifacts
- task: create:minio
- task: publish:minio
- task: setup:clean-build-artifacts
# Extra, optional Zarf packages
- task: create:leapfrogai-workarounds
- task: publish:leapfrogai-workarounds
- task: setup:clean-build-artifacts
- task: create:nvidia-gpu-operator
- task: publish:nvidia-gpu-operator
- task: setup:clean-build-artifacts
- name: release-bundles
description: "Builds and publishes all UDS bundles in the repository (LATEST)"
actions:
- task: create:local-path-core-bundle
- task: publish:local-path-core-bundle