Build Docker image and push it to Google Container Registry (GCR).
Required The JSON key that is used to access GCR.
Required Your Google Cloud Platform project ID.
Required The GCR hostname, which specifies the region of the registry's storage.
Required The path of Dockerfile. Default "."
.
Required The name of docker image (without hostname and tag).
The repository of the pushed image.
The image version correspond to the git branch or tag.
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