# Publish a Docker container from Bitbucket to Google Cloud Container Registry

DevFeed: [Publish a Docker container from Bitbucket to Google Cloud Container Registry](<https://devfeed.tech/articles/publish-a-docker-container-from-bitbucket-to-google-cloud-container-registry-21349.md>)

Original publisher: [Read original article](<https://juri.dev/blog/2019/08/docker-deploy-bitbucket-ci-to-gcp/>)

Published: 2019-08-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Juri Strumpflohner](<https://devfeed.tech/sources/juri-strumpflohner.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [bitbucket](<https://devfeed.tech/topics/bitbucket.md>), [Google Cloud Platform (GCP)](<https://devfeed.tech/topics/google-cloud.md>), [Docker Hub](<https://devfeed.tech/topics/docker-hub.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Git](<https://devfeed.tech/topics/git.md>), [Jenkins](<https://devfeed.tech/topics/jenkins.md>), [GitLab](<https://devfeed.tech/topics/gitlab.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [bitbucket](<https://devfeed.tech/tags/bitbucket.md>), [circleci](<https://devfeed.tech/tags/circleci.md>), [container-registry](<https://devfeed.tech/tags/container-registry.md>), [docker](<https://devfeed.tech/tags/docker.md>), [git](<https://devfeed.tech/tags/git.md>), [gitlab](<https://devfeed.tech/tags/gitlab.md>), [google-cloud](<https://devfeed.tech/tags/google-cloud.md>), [jenkins](<https://devfeed.tech/tags/jenkins.md>), [registry](<https://devfeed.tech/tags/registry.md>)

## AI overview

This tutorial explains how to configure a Bitbucket pipeline to automatically build and publish Docker container images to a private repository in Google Cloud Container Registry. It covers triggering builds from commits and Git tags, setting required environment variables, authenticating with Google Cloud, and tagging images.

## Source excerpt

Lorem ipsum dolor sit amet