Skip to content

Github Workflow Action to push a docker image to Google Container Registry

Notifications You must be signed in to change notification settings

kurkop/push-docker-gcr

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

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 }}

About

Github Workflow Action to push a docker image to Google Container Registry

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 55.3%
  • Dockerfile 44.7%