Skip to content

Commit

Permalink
chore: task for custom pepr (#766)
Browse files Browse the repository at this point in the history
## Description

This allows a custom release candidate image of pepr to be run with UDS
Core for CI testing

## Related Issue

Fixes #760 
<!-- or -->
Relates to #

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)

## Checklist before merging

- [x] Test, docs, adr added or updated as needed
- [x] [Contributor
Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)
followed

Signed-off-by: Case Wylie <cmwylie19@defenseunicorns.com>
cmwylie19 authored Sep 16, 2024
1 parent 489d6c9 commit e624d73
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tasks/create.yaml
Original file line number Diff line number Diff line change
@@ -60,7 +60,14 @@ tasks:
actions:
- description: "Build the UDS Core Pepr Module"
cmd: |
CUSTOM_PEPR_IMAGE=$( [ "${FLAVOR}" = "registry1" ] && echo "--custom-image ${REGISTRY1_PEPR_IMAGE}" ) || CUSTOM_PEPR_IMAGE=""
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 $CUSTOM_PEPR_IMAGE
npx pepr build -z chart $PEPR_OVERRIDE_IMAGE

0 comments on commit e624d73

Please sign in to comment.