Skip to content

Commit 5107fce

Browse files
authored
fix: build-args for docker build (#103)
1 parent 351a419 commit 5107fce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build_docker_image_and_push_to_ecr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ jobs:
128128

129129
- name: set docker build args and secrets
130130
run: |
131-
BUILD_ARGS=${{ inputs.dockerBuildArgs }}
131+
BUILD_ARGS=( ${{ inputs.dockerBuildArgs }} )
132132
if [ "${{ inputs.setNodeVersion }}" = true ]; then
133-
BUILD_ARGS="${BUILD_ARGS}\nNODE_VERSION=$(head -1 ${{ inputs.nvmrcPath }})"
133+
BUILD_ARGS+=(NODE_VERSION=$(head -1 ${{ inputs.nvmrcPath }}))
134134
fi
135135
136136
echo 'BUILD_ARGS<<EOF' >> $GITHUB_ENV
137-
echo -e ${BUILD_ARGS} >> $GITHUB_ENV
137+
printf "%s\n" "${BUILD_ARGS[@]}" >> $GITHUB_ENV
138138
echo 'EOF' >> $GITHUB_ENV
139139
140140
# Create secret file for build

0 commit comments

Comments
 (0)