Skip to content

Commit

Permalink
fix: build-args for docker build (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonraid authored Feb 22, 2024
1 parent 351a419 commit 5107fce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_docker_image_and_push_to_ecr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ jobs:

- name: set docker build args and secrets
run: |
BUILD_ARGS=${{ inputs.dockerBuildArgs }}
BUILD_ARGS=( ${{ inputs.dockerBuildArgs }} )
if [ "${{ inputs.setNodeVersion }}" = true ]; then
BUILD_ARGS="${BUILD_ARGS}\nNODE_VERSION=$(head -1 ${{ inputs.nvmrcPath }})"
BUILD_ARGS+=(NODE_VERSION=$(head -1 ${{ inputs.nvmrcPath }}))
fi
echo 'BUILD_ARGS<<EOF' >> $GITHUB_ENV
echo -e ${BUILD_ARGS} >> $GITHUB_ENV
printf "%s\n" "${BUILD_ARGS[@]}" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
# Create secret file for build
Expand Down

0 comments on commit 5107fce

Please sign in to comment.