-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathcreate.yaml
87 lines (72 loc) · 2.97 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
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
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
includes:
- common: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.7.4/tasks/create.yaml
variables:
- name: FLAVOR
default: upstream
- name: REGISTRY1_PEPR_IMAGE
# renovate: datasource=docker depName=registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller versioning=semver
default: registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller:v0.45.0
- name: LAYER
tasks:
- name: standard-package
description: "Create the UDS Core Zarf Package"
actions:
- task: pepr-build
- description: "Create the UDS Core Standard Zarf Package"
cmd: "uds zarf package create packages/standard --confirm --no-progress --flavor ${FLAVOR}"
- name: k3d-standard-bundle
description: "Create the K3d-UDS Core Bundle"
actions:
- description: "Create the UDS Core Standard Bundle"
cmd: "uds create bundles/k3d-standard --confirm --no-progress --architecture=${ZARF_ARCHITECTURE}"
- name: k3d-slim-dev-bundle
description: "Create the slim dev bundle (Base and Identity)"
actions:
- description: "Create base package"
task: single-layer
with:
layer: base
- description: "Create identity-authorization package"
task: single-layer
with:
layer: identity-authorization
- description: "Create the slim dev bundle (Base and Identity)"
cmd: "uds create bundles/k3d-slim-dev --confirm --no-progress --architecture=${ZARF_ARCHITECTURE}"
- name: checkpoint-dev-package
description: "Create the K3d + UDS Core Checkpoint Zarf Package"
actions:
- description: "Create the UDS Core Checkpoint Zarf Package"
cmd: "uds zarf package create packages/checkpoint-dev --confirm --no-progress --skip-sbom"
# This task is a wrapper to support --set LAYER=identity-authorization
- name: single-layer-callable
actions:
- task: single-layer
with:
layer: $LAYER
- name: single-layer
inputs:
layer:
default: base
description: The UDS Core layer to build
actions:
- task: pepr-build
if: ${{ eq .inputs.layer "base"}}
- cmd: uds zarf package create packages/${{ index .inputs "layer" }} --confirm --no-progress --flavor ${FLAVOR}
- name: pepr-build
description: "Build the UDS Core Pepr Module"
actions:
- description: "Build the UDS Core Pepr Module"
cmd: |
if [ -n "${PEPR_CUSTOM_IMAGE}" ] ; then
# e.g. PEPR_CUSTOM_IMAGE="pepr:dev uds run slim-dev"
PEPR_OVERRIDE_IMAGE="--custom-image ${PEPR_CUSTOM_IMAGE}"
elif [ "${FLAVOR}" = "registry1" ] ; then
PEPR_OVERRIDE_IMAGE="--custom-image ${REGISTRY1_PEPR_IMAGE}"
else
PEPR_OVERRIDE_IMAGE=""
fi
rm -fr dist
npm ci
npx pepr build -z chart $PEPR_OVERRIDE_IMAGE