Skip to content

Commit

Permalink
v2 - Example updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RafikFarhad committed Jul 3, 2020
1 parent f70a211 commit b272dab
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build-and-push-to-gcr:
runs-on: ubuntu-latest
steps:
- uses: RafikFarhad/push-to-gcr-github-action@v1
- uses: RafikFarhad/push-to-gcr-github-action@v2
with:
gcloud_service_key: ${{ secrets.GCLOUD_SERVICE_KEY }}
registry: gcr.io
Expand Down
16 changes: 16 additions & 0 deletions example/build_all_option.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Push to GCR Github Action
on: [push]
jobs:
build-and-push-to-gcr:
runs-on: ubuntu-latest
steps:
- uses: RafikFarhad/push-to-gcr-github-action@v2
with:
gcloud_service_key: ${{ secrets.GCLOUD_SERVICE_KEY }}
registry: gcr.io
project_name: my-awesome-project
image_name: server-end
image_tag: latest,v1
dockerfile: ./docker/Dockerfile.prod
target: prod
context: ./docker
4 changes: 2 additions & 2 deletions example/build_only_tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
- name: Get the tag name
id: get_tag_name
run: echo ::set-output name=GIT_TAG_NAME::${GITHUB_REF/refs\/tags\//}
- uses: RafikFarhad/push-to-gcr-github-action@v1
- uses: RafikFarhad/push-to-gcr-github-action@v2
with:
gcloud_service_key: ${{ secrets.GCLOUD_SERVICE_KEY }}
registry: gcr.io
project_name: my-awesome-project
image_name: server-end
image_tag: ${{ steps.get_tag_name.outputs.GIT_TAG_NAME }}
image_tag: latest,${{ steps.get_tag_name.outputs.GIT_TAG_NAME }}
dockerfile: ./build/Dockerfile

0 comments on commit b272dab

Please sign in to comment.