Skip to content

Commit

Permalink
Update docker-create.sh to fix env-var injection
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Patel07 authored Dec 13, 2024
1 parent 8b110a8 commit 8951187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/docker-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./../../.
Expand Down

0 comments on commit 8951187

Please sign in to comment.