https://github.com/liftitapp/push-docker-gcr
https://github.com/liftitapp/push-docker-gcr
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/liftitapp/push-docker-gcr
- Owner: Liftitapp
- Created: 2021-06-28T14:46:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-28T15:04:40.000Z (almost 5 years ago)
- Last Synced: 2025-02-06T15:53:02.411Z (over 1 year ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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: Liftitapp/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 }}
```