-
Notifications
You must be signed in to change notification settings - Fork 3
/
tasks.yaml
105 lines (93 loc) · 3.93 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
# 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.4.0/tasks/create.yaml
- publish: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/publish.yaml
- lint: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/lint.yaml
- pull: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/pull.yaml
- deploy: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/deploy.yaml
- setup: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/setup.yaml
- actions: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/actions.yaml
- badge: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/badge.yaml
- upgrade: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/upgrade.yaml
- compliance: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.4.0/tasks/compliance.yaml
tasks:
- name: default
description: Setup k3d cluster, deploy Mattermost
actions:
- task: create-dev-package
- task: setup:k3d-test-cluster
- task: create-deploy-test-bundle
- name: create-dev-package
description: Create the Mattermost package
actions:
- task: create:package
with:
options: "--skip-sbom"
- task: create:package
with:
path: ./plugins
options: "--skip-sbom --flavor ''"
- name: create-deploy-test-bundle
description: Test and validate cluster is deployed with Mattermost
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 on an existing cluster (for iteration/dev speed)
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 deploying the current branch to a new cluster
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 && cp bundle/uds-config.yaml ../bundle/uds-config-previous.yaml"
- task: setup:k3d-test-cluster
- task: deploy:test-bundle
with:
config: bundle/uds-config-previous.yaml
- 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: create:package
with:
path: ./plugins
options: "--flavor ''"
- 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: publish:package
with:
# x-release-please-start-version
version: "10.2.0-uds.0"
# x-release-please-end
- task: publish:package
with:
# x-release-please-start-version
version: "10.2.0-uds.0"
# x-release-please-end
name: mattermost-plugins