From cd068635eaba22a1e8ad7b2bfc08dcfc3a96e8ba Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Thu, 5 Sep 2024 16:24:45 +0200 Subject: [PATCH] [CI] update script for building local carvel packages. --- build-carvel-package.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build-carvel-package.sh b/build-carvel-package.sh index 6516893496..e0a0d263f2 100755 --- a/build-carvel-package.sh +++ b/build-carvel-package.sh @@ -17,9 +17,7 @@ fi # you can launch a local docker registry using docker run -d -p 5000:5000 --name registry registry:2.7 # export REPO_PREFIX=":5000/" -if [ "$REPO_PREFIX" = "" ]; then - REPO_PREFIX="docker.io/" -fi +readonly REPO_PREFIX="${REPO_PREFIX:-docker.io/}" export PACKAGE_BUNDLE_REPOSITORY="${REPO_PREFIX}springcloud/scdf-oss-package" export REPOSITORY_BUNDLE="${REPO_PREFIX}springcloud/scdf-oss-repo"