Public | Automated Build

Last pushed: 10 months ago
Short Description
Docker + Google Cloud SDK container
Full Description

Docker Google SDK

This docker image allows you to build other docker images and also push them to Google Cloud Platform (GCP) using the Google SDK.

The main use for this so far has been to build images in platforms like Gitlab CI, and then publish these built images to Google Cloud Platform.

Example uses

An example Gitlab CI block might look like:

  image: docker-google-cloud
  stage: publish
    - echo "$GOOGLE_KEY" > key.json
    - gcloud auth activate-service-account --key-file key.json
    - docker build --no-cache=true -t "{your-gcp-project}/{app}:{version}" {path_to_dockerfile}
    - gcloud docker -- push "{your-gcp-project}/{app}:{version}"
Docker Pull Command
Source Repository