https://github.com/RaccoonDev/push-docker-gcr
Github Workflow Action to push a docker image to Google Container Registry
https://github.com/RaccoonDev/push-docker-gcr
Last synced: 5 months ago
JSON representation
Github Workflow Action to push a docker image to Google Container Registry
- Host: GitHub
- URL: https://github.com/RaccoonDev/push-docker-gcr
- Owner: RaccoonDev
- Created: 2019-11-13T23:31:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T17:41:14.000Z (about 4 years ago)
- Last Synced: 2024-10-07T03:03:42.862Z (6 months ago)
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 30
- Watchers: 2
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - RaccoonDev/push-docker-gcr - Github Workflow Action to push a docker image to Google Container Registry (Dockerfile)
README
# Build and push docker image to Google Container Registry action
Opinionated github workflow action to build a docker image from Dockerfile
and push the image to Google Continer Registry.Pass all sensitive data using secrets.
## Inputs
### `gcr_host`
Google Container Registry Host
- gcrp.io (default)
- eu.gcr.ui
- etc### `image_name`
Name of the image. Should be specified without domain and project.
### `image_tag`
Image tag to set for the built image.
## Required Environment Variables
### `GCLOUD_SERVICE_KEY`
Service key to use for GCR authentication
### `GOOGLE_PROJECT_ID`
Project id. Used in combination with GCR endpoint to build full docker image.
## Example usage
```ylm
uses: raccoondev/push-docker-gcr
with:
gcr_host: eu.gcr.io
image_name: my_image
image_tag: latest
env:
GCLOUD_SERVICE_KEY: ${{ secrets.GCLOUD_SERVICE_KEY }}
GOOGLE_PROJECT_ID: ${{ secrets.GOOGLE_PROJECT_ID }}
```