Skip to content

Google Cloud Container Registry

Actions
Push a docker image to Google Cloud Container Registry
v1.0.0
Latest
Star (9)

Google Cloud Container Registry Docker Push

Github action to push a docker image to Google Cloud's Container Registry.

Prerequisites

Set up the following resources manually in the Cloud Console or use a tool like Terraform.

  • Enable Container Registry API
  • Create Service Account with Role Storage Admin and export a new JSON key.

Github Action Inputs

Variable Description
creds Required Service Account JSON Key (not base64 encoded)
src Required Source Image
dst Required Destination Image
registry Registry host name (must match destination image), default: "gcr.io"

Example Usage

uses: mattes/gce-docker-push-action@v1
with:
  creds: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
  src: org/local-image:build
  dst: gcr.io/my-project/my-image:${{github.run_number}}-${{github.sha}}

Google Cloud Container Registry is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Push a docker image to Google Cloud Container Registry
v1.0.0
Latest

Google Cloud Container Registry is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.