Skip to content

Commit

Permalink
Merge pull request #8 from Poltio/hotfix/default-docker-args
Browse files Browse the repository at this point in the history
update docker defeault build args with sha
  • Loading branch information
gcg authored Jan 27, 2023
2 parents ed22688 + 19b4da9 commit 8a05ead
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a05ead

Please sign in to comment.