From 8951187f4785a816af73fad234d2a29159e8af44 Mon Sep 17 00:00:00 2001 From: Shubham Patel <87226371+Shubham-Patel07@users.noreply.github.com> Date: Fri, 13 Dec 2024 22:46:37 +0530 Subject: [PATCH] Update docker-create.sh to fix env-var injection --- .github/scripts/docker-create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/docker-create.sh b/.github/scripts/docker-create.sh index 5aba18763..3e69b84e6 100755 --- a/.github/scripts/docker-create.sh +++ b/.github/scripts/docker-create.sh @@ -352,7 +352,7 @@ build_update_pom() { create_containers() { echo "Creating containers" - SECRET_VALUE="youCantHandleThisSecret" + export SECRET_VALUE="youCantHandleThisSecret" if [[ "$script_mode" == "publish" ]]; then docker buildx build --platform linux/amd64,linux/arm64 -t jeroenwillemsen/addo-example:$tag-no-vault --build-arg "$buildarg" --build-arg "PORT=8081" --build-arg "argBasedVersion=$tag" --build-arg "spring_profile=without-vault" --secret id=mysecret,env=SECRET_VALUE --push ./../../. docker buildx build --platform linux/amd64,linux/arm64 -t jeroenwillemsen/addo-example:latest-no-vault --build-arg "$buildarg" --build-arg "PORT=8081" --build-arg "argBasedVersion=$tag" --build-arg "spring_profile=without-vault" --secret id=mysecret,env=SECRET_VALUE --push ./../../.