Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kurkop/push-docker-gcr
Github Workflow Action to push a docker image to Google Container Registry
https://github.com/kurkop/push-docker-gcr
Last synced: about 2 months ago
JSON representation
Github Workflow Action to push a docker image to Google Container Registry
- Host: GitHub
- URL: https://github.com/kurkop/push-docker-gcr
- Owner: kurkop
- Fork: true (RaccoonDev/push-docker-gcr)
- Created: 2021-03-01T15:59:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T17:45:21.000Z (almost 4 years ago)
- Last Synced: 2024-04-24T21:22:21.478Z (9 months ago)
- Language: Shell
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - kurkop/push-docker-gcr - Github Workflow Action to push a docker image to Google Container Registry (Shell)
README
# Build Docker Image and Push into Google Container Registry
## Inputs
### `docker_image_name`
Docker Image Name
Name of the image. Should be specified without domain and project.
### `docker_image_tag`
Image tag to set for the built image.
### `docker_context`
Path to the context directory (containing the Dockerfile).
Default: `.`
### `dockerfile`
Name of dockerfile.
Default: `Dockerfile`
### `gcr_host`
Google Container Registry Host
Default: `gcr.io`
### `gcr_project_id`
Google Cloud Project ID.
### `gcr_service_key`
Google Cloud Service Key (JSON).
## Example usage
```ylm
uses: Industrial/push-docker-gcr
with:
docker_image_name: api
docker_image_tag: latest
docker_context: ./services/api
gcr_host: gcr.io
gcr_project_id: ${{ secrets.GCLOUD_PROJECT_ID }}
gcr_service_key: ${{ secrets.GCLOUD_SERVICE_KEY }}
```