Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add flavor to pepr build task #238

Merged
merged 12 commits into from
Mar 13, 2024
6 changes: 5 additions & 1 deletion tasks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ variables:
- name: FLAVOR
default: upstream

- name: REGISTRY1_PEPR_IMAGE
default: registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller:v0.27.0
TristanHoladay marked this conversation as resolved.
Show resolved Hide resolved

tasks:
- name: standard-package
description: "Create the UDS Core Zarf Package"
Expand Down Expand Up @@ -47,6 +50,7 @@ tasks:
actions:
- description: "Build the UDS Core Pepr Module"
cmd: |
CUSTOM_PEPR_IMAGE=$( [ "${FLAVOR}" = "registry1" ] && echo "--custom-image ${REGISTRY1_PEPR_IMAGE} ) || CUSTOM_PEPR_IMAGE=""
TristanHoladay marked this conversation as resolved.
Show resolved Hide resolved
rm -fr dist
npm ci
npx pepr build
npx pepr build $CUSTOM_PEPR_IMAGE
Loading