-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcreate.yaml
56 lines (53 loc) · 2.09 KB
/
create.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
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
variables:
- name: FLAVOR
default: upstream
tasks:
- name: package
description: Create the UDS Zarf Package in the repository
inputs:
options:
description: For setting create time variables and flags
path:
description: Path to the zarf package definition being created
default: .
architecture:
description: The architecture of the package to create
default: ${UDS_ARCH}
config:
description: Optionally provide a path to a Zarf config file
default: ""
required: false
actions:
- env:
- ZARF_CONFIG=${{ .inputs.config }}
cmd: |
if [ "${FLAVOR}" != "registry1" ] || [ "${{ .inputs.architecture }}" != "arm64" ]; then
./uds zarf package create ${{ .inputs.path }} --confirm --no-progress --architecture="${{ .inputs.architecture }}" --flavor "${FLAVOR}" ${{ .inputs.options }}
else
echo "Registry1 packages cannot be made for 'arm64'"
fi
- name: test-bundle
description: Create the test bundle (bundling package + dependencies for testing)
inputs:
options:
description: For setting create time variables and flags
path:
description: Path relative to the repositories root where the uds-bundle.yaml lives
default: bundle
config:
description: Path to the bundle config file. Defaults to bundle/uds-config.yaml.
default: bundle/uds-config.yaml
architecture:
description: The architecture of the bundle to create
default: ${UDS_ARCH}
actions:
- env:
- UDS_CONFIG=${{ .inputs.config }}
cmd: |
if [ "${FLAVOR}" != "registry1" ] || [ "${{ .inputs.architecture }}" != "arm64" ]; then
./uds create ${{ .inputs.path }} --confirm --no-progress --architecture="${{ .inputs.architecture }}" ${{ .inputs.options }}
else
echo "Registry1 bundles cannot be made for 'arm64'"
fi