Fix release script to cd to legatus directory before calling new_docker_build.sh

- new_docker_build.sh requires .envrc in current directory
- Change to LEGATUS_ROOT before invoking the script

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-10-09 13:15:41 +00:00
1 parent 88e46448bf
commit 47cdc601b3
1 file changed
+3 -1
+3 -1
View File
@@ -44,8 +44,10 @@ log_info "Build number: ${BUILD_NUMBER}"
log_info "Build tag: ${BUILD_TAG}"
# Build prebuilt image and run Jenkins builder inside container
# new_docker_build.sh must be run from the legatus directory (where .envrc exists)
log_info "Building prebuilt Docker image and running Jenkins builder..."
bash "${LEGATUS_ROOT}/new_docker_build.sh" \
cd "${LEGATUS_ROOT}"
bash ./new_docker_build.sh \
--build-prebuilt-image \
--use-prebuilt-image \
--run-jenkins-builder \