-
Notifications
You must be signed in to change notification settings - Fork 3
/
tasks.yaml
97 lines (88 loc) · 3.84 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
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
includes:
- dependencies: ./tasks/dependencies.yaml
- test: ./tasks/test.yaml
- create: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/create.yaml
- publish: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/publish.yaml
- lint: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/lint.yaml
- pull: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/pull.yaml
- deploy: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/deploy.yaml
- setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/setup.yaml
- actions: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/actions.yaml
- badge: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/badge.yaml
- upgrade: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/upgrade.yaml
- compliance: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.2/tasks/compliance.yaml
tasks:
- name: default
description: Create K3D Cluster with UDS-Core (Dev) and GitLab
actions:
- task: create-dev-package
- task: setup:k3d-test-cluster
- task: create-deploy-test-bundle
- name: create-dev-package
description: Create the GitLab package
actions:
- task: create:package
with:
options: "--skip-sbom"
- name: create-deploy-test-bundle
description: Test and validate cluster is deployed with GitLab
actions:
- task: dependencies:create
- task: create:test-bundle
- task: deploy:test-bundle
- task: setup:create-doug-user
- task: test:all
- name: dev
description: Create and deploy the bundle against an existing cluster
actions:
- task: create-dev-package
- task: create:test-bundle
- task: deploy:test-bundle
# CI will execute the following (via uds-common/.github/workflows/callable-[test|publish].yaml) so they need to be here with these names
- name: test-install
description: Test the health of a GitLab deployment
actions:
- task: create-dev-package
- task: setup:k3d-test-cluster
- task: create-deploy-test-bundle
- task: compliance:validate
- name: test-upgrade
description: Test an upgrade from the latest released package to the current branch
actions:
- task: upgrade:create-latest-tag-bundle
with:
dep_commands: ./uds run dependencies:create
- task: setup:k3d-test-cluster
- task: deploy:test-bundle
- task: compliance:validate
- task: create-dev-package
- task: create-deploy-test-bundle
- task: compliance:validate
- task: compliance:evaluate
- name: publish-release
description: Build and publish the packages
actions:
- task: actions:determine-arch
- task: create:package
- task: setup:k3d-test-cluster
if: ${{ or (ne .variables.FLAVOR "upstream") (ne .variables.ARCH "arm64") }}
- task: create-deploy-test-bundle
if: ${{ or (ne .variables.FLAVOR "upstream") (ne .variables.ARCH "arm64") }}
- task: dependencies:create
if: ${{ and (eq .variables.FLAVOR "upstream") (eq .variables.ARCH "arm64") }}
- task: create:test-bundle
if: ${{ and (eq .variables.FLAVOR "upstream") (eq .variables.ARCH "arm64") }}
- description: Publish the package
task: publish:package
with:
# x-release-please-start-version
version: "17.5.1-uds.0"
# x-release-please-end
- description: Publish the bundle
task: publish:test-bundle
with:
# x-release-please-start-version
version: "17.5.1-uds.0"
# x-release-please-end