-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.yaml
86 lines (68 loc) · 2.22 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
variables:
- name: FLAVOR
default: upstream
- name: PKG
- name: K3D_IMAGE
default: "ghcr.io/defenseunicorns/oss/uds-k3d-k3s:v1.28.7-k3s1"
includes:
- create: ./tasks/create.yaml
- setup: ./tasks/setup.yaml
- deploy: ./tasks/deploy.yaml
- test: ./tasks/test.yaml
- lint: ./tasks/lint.yaml
- common-setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.3.6/tasks/setup.yaml
tasks:
- name: dev-setup
actions:
- description: "Create the dev cluster"
task: setup:create-k3d-cluster
- description: "Deploy the Istio source package with Zarf Dev"
cmd: "uds zarf dev deploy src/istio --flavor ${FLAVOR}"
- description: "Dev instructions"
cmd: |
echo "Next steps:"
echo " - To test & develop the Pepr module, run 'npx pepr dev' from a Javascript debug terminal"
echo " - Otherwise run 'npx pepr deploy' to deploy the Pepr module to the cluster"
echo " - Additional source packages can be deployed with 'zarf dev deploy src/<package>'"
- name: dev-deploy
actions:
- description: "Deploy the given source package with Zarf Dev"
cmd: "uds zarf dev deploy src/${PKG} --flavor ${FLAVOR}"
- name: setup-cluster
actions:
- task: setup:k3d-test-cluster
- name: registry-login
actions:
- task: common-setup:registry-login
with:
registry: ${REGISTRY}
registryUsername: ${REGISTRY_USERNAME}
registryPassword: ${REGISTRY_PASSWORD}
registryRetryInterval: ${REGISTRY_RETRY_INTERVAL}
- name: create-single-package
actions:
- task: create:single-package
- name: create-standard-package
actions:
- task: create:standard-package
- name: deploy-single-package
actions:
- task: deploy:single-package
- name: deploy-standard-bundle
actions:
- task: deploy:k3d-standard-bundle
- name: test-single-package
actions:
- task: test:single-package
- name: test-uds-core
actions:
- task: test:uds-core
- name: test-uds-core-upgrade
actions:
- task: test:uds-core-upgrade
- name: lint-check
actions:
- task: lint:check
- name: lint-fix
actions:
- task: lint:fix