From bbd3aa8005524710feb7d788d0e36c8f8e545dfe Mon Sep 17 00:00:00 2001 From: Zachary Rollyson Date: Wed, 26 Jun 2024 22:22:32 -0400 Subject: [PATCH] run.sh to load profile on workers so deps available --- runner/cf-driver/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runner/cf-driver/run.sh b/runner/cf-driver/run.sh index 6524742..c2ec898 100755 --- a/runner/cf-driver/run.sh +++ b/runner/cf-driver/run.sh @@ -15,7 +15,7 @@ if [ -n "${RUNNER_DEBUG-}" ] && [ "$RUNNER_DEBUG" == "true" ]; then printf "=========[cf-driver] RUNNER_DEBUG: End command display" fi -if ! cf ssh "$CONTAINER_ID" < "${1}"; then +if ! cf ssh "$CONTAINER_ID" -c "source /etc/profile" < "${1}"; then # Exit using the variable, to make the build as failure in GitLab # CI. exit "$BUILD_FAILURE_EXIT_CODE"