rafikfarhad/Push to GCR GitHub Action
An action that build docker image and push to Google Cloud Registry
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Feb 13, 2026
- License
- MIT
Pinned Snippet
uses: rafikfarhad/push-to-gcr-github-action@e6fd4fb5c4b92fb4cfe55900729ec9edfe9506ab # v5tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| gcloud_service_key | Google cloud service key json file as plain text or base64 encrypted. This field is optional if you are using this action with https://github.com/google-github-actions/auth | no | — |
| registry | The registry where the image should be pushed | no | gcr.io |
| project_id | The project id | yes | my-awesome-project |
| image_name | The image name | yes | backend-server |
| image_tag | Tag name | no | latest |
| dockerfile | Dockerfile that will build the image | no | "" |
| context | Docker build context | no | . |
| target | Multi-staged build target | no | "" |
| build_args | Pass a list of env vars as build-args for docker-build, separated by commas | no | — |
| push_only | Skip the build step and just push an image | no | false |
Outputs
no outputs