Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattes/gce-docker-push-action
Github action to push a docker image to Google Cloud's Container Registry.
https://github.com/mattes/gce-docker-push-action
container-registry docker docker-push gce github-action google google-cloud google-cloud-container-registry
Last synced: 3 months ago
JSON representation
Github action to push a docker image to Google Cloud's Container Registry.
- Host: GitHub
- URL: https://github.com/mattes/gce-docker-push-action
- Owner: mattes
- License: unlicense
- Created: 2020-09-21T02:36:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T23:54:54.000Z (over 4 years ago)
- Last Synced: 2024-04-22T16:29:11.277Z (9 months ago)
- Topics: container-registry, docker, docker-push, gce, github-action, google, google-cloud, google-cloud-container-registry
- Homepage:
- Size: 1.95 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - mattes/gce-docker-push-action - Github action to push a docker image to Google Cloud's Container Registry. (Others)
README
# Google Cloud Container Registry Docker Push
Github action to push a docker image to [Google Cloud's Container Registry](https://cloud.google.com/container-registry).
## Prerequisites
Set up the following resources manually in the Cloud Console
or use a tool like [Terraform](https://www.terraform.io).* Enable Container Registry API
* Create Service Account with Role `Storage Admin` and export a new JSON key.## Github Action Inputs
| Variable | Description |
|----------------------------------|-----------------------------------------------------------------------------|
| `creds` | ***Required*** Service Account JSON Key (not base64 encoded) |
| `src` | ***Required*** Source Image |
| `dst` | ***Required*** Destination Image |
| `registry` | Registry host name (must match destination image), default: "gcr.io" |## Example Usage
```
uses: mattes/gce-docker-push-action@v1
with:
creds: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
src: org/local-image:build
dst: gcr.io/my-project/my-image:${{github.run_number}}-${{github.sha}}
```