diff --git a/action.yaml b/action.yaml index 6dc0ff3..93bde01 100644 --- a/action.yaml +++ b/action.yaml @@ -11,7 +11,8 @@ inputs: DOCKER_BUILD_ARGS: description: If you want to inject build params to docker build step. required: false - default: "" + default: |- + --build-arg sha="$GITHUB_SHA" \ CLOUD_RUN_SERVICE_NAME: description: "Google Cloud Run Service name you want to deploy" required: true @@ -89,8 +90,8 @@ runs: run: |- docker build \ --tag "${{ env.ar_image_tag }}" \ - --build-arg sha="$GITHUB_SHA" \ - --build-arg version="${{ env.docker_tag }}" \ ${{ inputs.DOCKER_BUILD_ARGS }} + --build-arg version="${{ env.docker_tag }}" \ + ${{ inputs.DOCKER_BUILD_ARGS }} . - name: Push the Image to Google Artifact Registry