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: custom pepr image for ci testing #761

Closed
wants to merge 6 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions tasks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,17 @@ 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 [ "${FLAVOR}" = "registry1" ] ; then
btlghrants marked this conversation as resolved.
Show resolved Hide resolved
PEPR_CUSTOM_IMAGE="--custom-image ${REGISTRY1_PEPR_IMAGE}"

elif [ -n "${PEPR_CUSTOM_IMAGE}" ] ; then
# e.g. PEPR_CUSTOM_IMAGE="pepr:dev uds run slim-dev"
PEPR_CUSTOM_IMAGE="--custom-image ${PEPR_CUSTOM_IMAGE}"

else
PEPR_CUSTOM_IMAGE=""
fi

rm -fr dist
npm ci
npx pepr build -z chart $CUSTOM_PEPR_IMAGE
npx pepr build -z chart $PEPR_CUSTOM_IMAGE
Loading