From 1103d32888017042f38cbe4704b13db496f14524 Mon Sep 17 00:00:00 2001 From: Sushanta Das Date: Mon, 10 Jun 2024 18:06:17 +0530 Subject: [PATCH] export through env file --- .tekton/pull-request.yaml | 1 + hack/build-and-push.sh | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.tekton/pull-request.yaml b/.tekton/pull-request.yaml index ea17e0410e..bc8d5c4e8c 100644 --- a/.tekton/pull-request.yaml +++ b/.tekton/pull-request.yaml @@ -157,6 +157,7 @@ spec: INSTALL_BUNDLE_NS=$(params.e2e_test_namespace) \ ENABLE_SOURCE_BUILD=1 \ hack/build-and-push.sh + eval "source bundle_values.env" echo -n $CUSTOM_DOCKER_BUILD_PIPELINE_BUNDLE | tee $(results.custom-docker-build-bundle.path) echo -n $CUSTOM_FBC_BUILDER_PIPELINE_BUNDLE | tee $(results.custom-fbc-builder-bundle.path) workspaces: diff --git a/hack/build-and-push.sh b/hack/build-and-push.sh index 131c0a52c3..5703435ef3 100755 --- a/hack/build-and-push.sh +++ b/hack/build-and-push.sh @@ -182,6 +182,5 @@ do done if [ "$SKIP_INSTALL" == "" ]; then - export CUSTOM_DOCKER_BUILD_PIPELINE_BUNDLE="$docker_pipeline_bundle" - export CUSTOM_FBC_BUILDER_PIPELINE_BUNDLE="$fbc_pipeline_bundle" + printf "export CUSTOM_DOCKER_BUILD_PIPELINE_BUNDLE=$docker_pipeline_bundle\nexport CUSTOM_FBC_BUILDER_PIPELINE_BUNDLE=$fbc_pipeline_bundle" > bundle_values.env fi