-
Notifications
You must be signed in to change notification settings - Fork 1
/
tasks.yaml
84 lines (76 loc) · 3.13 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
# 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-bundle: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.1/tasks/create.yaml
- deploy-bundle: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.1/tasks/deploy.yaml
- publish-bundle: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.1/tasks/publish.yaml
- pull-bundle: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.1/tasks/pull.yaml
- setup-bundle: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.1/tasks/setup.yaml
- lint: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.1/tasks/lint.yaml
- actions: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.2.1/tasks/actions.yaml
variables:
- name: BUNDLE_PATH
default: bundles/dev
tasks:
- name: default
description: Build and deploy SWF on UDS k3d-slim-dev
actions:
- task: setup-bundle:k3d-test-cluster
- task: create-deploy-test-bundle
- name: create-deploy-test-bundle
description: Test and validate cluster is deployed with the SWF Bundle
actions:
- task: dependencies:create
- task: create-bundle:test-bundle
with:
path: ${BUNDLE_PATH}
config: ${BUNDLE_PATH}/uds-config.yaml
- task: deploy-bundle:test-bundle
with:
path: ${BUNDLE_PATH}
config: ${BUNDLE_PATH}/uds-config.yaml
- task: setup-bundle:create-doug-user
- task: test:all
# CI will execute the following (via uds-common/.github/actions/test) so they need to be here with these names
- name: test-install
description: Test the SWF bundle from the current branch
actions:
- task: setup-bundle:k3d-test-cluster
- task: create-deploy-test-bundle
- name: test-upgrade
description: Test an upgrade from the latest released bundle to the current branch
actions:
- task: pull-bundle:latest-bundle-release
with:
spoof_release: "true"
path: ${BUNDLE_PATH}
- task: setup-bundle:k3d-test-cluster
- task: deploy-bundle:test-bundle
with:
path: ${BUNDLE_PATH}
config: ${BUNDLE_PATH}/uds-config.yaml
- task: create-deploy-test-bundle
- name: publish-release
description: Build and publish the bundles
actions:
- task: actions:determine-arch
- task: setup-bundle:k3d-test-cluster
if: ${{ ne .variables.ARCH "arm64" }}
- task: create-deploy-test-bundle
if: ${{ ne .variables.ARCH "arm64" }}
- task: dependencies:create
if: ${{ eq .variables.ARCH "arm64" }}
- task: create-bundle:test-bundle
with:
path: ${BUNDLE_PATH}
config: ${BUNDLE_PATH}/uds-config.yaml
if: ${{ eq .variables.ARCH "arm64" }}
- description: Publish the bundle
- task: publish-bundle:test-bundle
with:
path: ${BUNDLE_PATH}
# x-release-please-start-version
version: "0.3.0"
# x-release-please-end