-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathremove.yaml
26 lines (25 loc) · 1.28 KB
/
remove.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
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
tasks:
- name: test-bundle
description: Remove the deployed test bundle
inputs:
path:
description: Path relative to the repositories root where the uds-bundle.yaml and .tar.zst lives
default: bundle
config:
description: File name of the bundle config file. Defaults to uds-config.yaml. Path is relative to the path input.
default: uds-config.yaml
options:
description: For setting deploy time variables and flags
actions:
- description: Get the current UDS Bundle name
cmd: cat ${{ .inputs.path }}/uds-bundle.yaml | ./uds zarf tools yq .metadata.name
setVariables:
- name: BUNDLE_NAME
- description: Get the current UDS Bundle version
cmd: cat ${{ .inputs.path }}/uds-bundle.yaml | ./uds zarf tools yq .metadata.version
setVariables:
- name: BUNDLE_VERSION
- description: Remove the UDS bundle with the package and its dependencies
cmd: UDS_CONFIG=${{ .inputs.path }}/${{ .inputs.config }} ./uds remove "${{ .inputs.path }}/uds-bundle-${BUNDLE_NAME}-${UDS_ARCH}-${BUNDLE_VERSION}.tar.zst" --confirm --no-progress ${{ .inputs.options }}