From 5c756b6767db0052f3c487af47581313d02d9cc8 Mon Sep 17 00:00:00 2001 From: gcg Date: Fri, 27 Jan 2023 13:48:38 +0300 Subject: [PATCH] single line docker build --- action.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/action.yaml b/action.yaml index d765039..b6d29ec 100644 --- a/action.yaml +++ b/action.yaml @@ -10,9 +10,7 @@ inputs: required: true DOCKER_BUILD_ARGS: description: If you want to inject build params to docker build step. - required: false - default: >- - --build-arg sha="$GITHUB_SHA" + required: true CLOUD_RUN_SERVICE_NAME: description: "Google Cloud Run Service name you want to deploy" required: true @@ -88,11 +86,7 @@ runs: - name: Building the Docker Image shell: bash run: |- - docker build \ - --tag "${{ env.ar_image_tag }}" \ - ${{ inputs.DOCKER_BUILD_ARGS }} \ - --build-arg version="${{ env.docker_tag }}" \ - . + docker build --tag "${{ env.ar_image_tag }}" --build-arg version="${{ env.docker_tag }}" ${{ inputs.DOCKER_BUILD_ARGS }} . - name: Push the Image to Google Artifact Registry shell: bash