Skip to content

Commit

Permalink
add new build args
Browse files Browse the repository at this point in the history
  • Loading branch information
schliflo committed Jun 6, 2023
1 parent 6b743b3 commit 099ca9b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ In your actions workflow, somewhere after the checkout step insert this:

```yaml
- name: "Cloud Run: Deploy Service"
uses: schliflo/action-cloud-run@2.4.0
uses: schliflo/action-cloud-run@2.5.0
env:
# if set github deployments will be used
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -66,7 +66,7 @@ You can also delete the service after branch deletion:

```yaml
- name: "Cloud Run: Delete Service"
uses: schliflo/action-cloud-run@2.4.0
uses: schliflo/action-cloud-run@2.5.0
env:
# if set github deployments will be used
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: "Cloud Run: Deploy Service"
uses: schliflo/action-cloud-run@2.4.0
uses: schliflo/action-cloud-run@2.5.0
with:
project: ${{ secrets.GCP_PROJECT }}
service_name: your-service-name
Expand All @@ -124,7 +124,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: "Cloud Run: Delete Service"
uses: schliflo/action-cloud-run@2.4.0
uses: schliflo/action-cloud-run@2.5.0
with:
project: ${{ secrets.GCP_PROJECT }}
service_name: your-service-name
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ outputs:

runs:
using: "docker"
image: "docker://ghcr.io/schliflo/action-cloud-run:2.4.0"
image: "docker://ghcr.io/schliflo/action-cloud-run:2.5.0"
2 changes: 2 additions & 0 deletions src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ docker build \
-t ${GCR_IMAGE_NAME}:${BRANCH_SAFE} \
--build-arg IMAGE_NAME=${GCR_IMAGE_NAME} \
--build-arg BRANCH_NAME=${BRANCH} \
--build-arg REF_NAME=${GITHUB_REF_NAME} \
--build-arg COMMIT_SHA=${GITHUB_SHA} \
.

if [ "$INPUT_HOOK_BUILD_AFTER" ]; then
Expand Down

0 comments on commit 099ca9b

Please sign in to comment.