---
date: 2016-01-01T00:00:00+00:00
title: Google Container Registry
author: drone-plugins
tags: [ publish, docker, google ]
repo: drone-plugins/drone-gcr
logo: google_gcr.svg
image: plugins/gcr
---

{{% alert error %}}
We are looking for volunteers to port this plugin to drone 0.5
{{% /alert %}}

---
date: 2016-01-01T00:00:00+00:00
title: Google Container Registry
author: drone-plugins
tags: [ publish, docker, google ]
repo: drone-plugins/drone-gcr
logo: google_gcr.svg
image: plugins/gcr
---

{{% alert info %}}
The GCR plugin is an extension around the Docker plugin. Please see the documentation for the Docker plugin for other configuration options.
{{% /alert %}}

The GCR plugin can be used to build and publish images to the Google Container Registry. The following pipeline configuration uses the GCR plugin to build and publish Docker images:

```yaml
pipeline:
  gcr:
    image: plugins/gcr
    repo: project/foo
    tags: latest
    secrets: [json_key]
```

Example configuration using a different GCR registry:

```diff
pipeline:
  gcr:
    image: plugins/gcr
+   registry: us.gcr.io
    repo: project/foo
    tags: latest
```

# Secret Reference

plugin_json_key, gcr_json_key, google_credentials, google_application_credentials
: authenticates with this service account JSON credential

Add documentation for updated GCR plugin
Add documentation for updated GCR plugin