]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
container: pass CUSTOM_CEPH_REPO_URL thru container build script 64976/head
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 10 Jul 2025 13:51:10 +0000 (09:51 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 11 Aug 2025 19:04:30 +0000 (15:04 -0400)
Update the build.sh script such that the environment variable
CUSTOM_CEPH_REPO_URL is passed to the container build command
as a build argument. This allows a developer or system outside of the
ceph CI to build container images similar to those produced by the
CI but using custom RPM packages.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
container/build.sh

index ca0a5604d82b203ebce7c516b3c11cee7bdce0cb..4f7a34a913194c8383fd0885ed91afe77a20dd6c 100755 (executable)
@@ -120,8 +120,9 @@ podman build --pull=newer --squash -f $CFILE -t build.sh.output \
     --build-arg CEPH_REF=${BRANCH:-main} \
     --build-arg OSD_FLAVOR=${FLAVOR:-default} \
     --build-arg CI_CONTAINER=${CI_CONTAINER:-default} \
+    --build-arg CUSTOM_CEPH_REPO_URL="${CUSTOM_CEPH_REPO_URL}" \
     --secret=id=prerelease_creds,src=./prerelease.secret.txt \
-    2>&1 
+    2>&1
 
 rm ./prerelease.secret.txt