https://github.com/hahow/publish-docker-image-action
Github Action to build Docker image and push it to GCR
https://github.com/hahow/publish-docker-image-action
docker-image gcr github-actions
Last synced: 3 months ago
JSON representation
Github Action to build Docker image and push it to GCR
- Host: GitHub
- URL: https://github.com/hahow/publish-docker-image-action
- Owner: hahow
- Created: 2019-12-27T02:22:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T06:20:52.000Z (about 6 years ago)
- Last Synced: 2025-01-18T09:33:18.821Z (over 1 year ago)
- Topics: docker-image, gcr, github-actions
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Publish Docker Image action
Build Docker image and push it to Google Container Registry (GCR).
## Inputs
### `gcloud_auth_key`
**Required** The JSON key that is used to access GCR.
### `gcloud_project_id`
**Required** Your Google Cloud Platform project ID.
### `hostname`
**Required** The GCR hostname, which specifies the region of the registry's storage.
### `dockerfile_path`
**Required** The path of Dockerfile. Default `"."`.
### `image_name`
**Required** The name of docker image (without hostname and tag).
## Outputs
### `image_repository`
The repository of the pushed image.
### `image_version`
The image version correspond to the git branch or tag.
## Example usage
uses: hahow/publish-docker-image-action@v1.0.0
with:
gcloud_auth_key: ${{ secrets.GCLOUD_AUTH_KEY }}
gcloud_project_id: ${{ secrets.GCLOUD_PROJECT_ID }}
hostname: asia.gcr.io
image_name: core/payment-system