Skip to content
Google Cloud Build Demo
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main
.gcloudignore
.gitignore
README.md
cloudbuild-getting-started.yaml
cloudbuild-m2-cache.yaml
cloudbuild-volume.yaml
cloudbuild.yaml
pom.xml

README.md

Google Cloud Build Demo

Build the project without Docker daemon

$ mvn clean install jib:build -Dimage=eu.gcr.io/learning-cloud-build-251912/cloud-build-demo

Build with Docker daemon

$ mvn clean install jib:dockerBuild -Dimage=altfatterz/docker-jib-demo

Start a new build

$ gcloud builds submit

Caching Maven dependencies

Caching Jib layers

Use the -Djib.baseImageCache=$HOME/.cache/google-cloud-tools-java/jib

The $HOME/.cache/google-cloud-tools-java/jib will contain the cached layers.

This folder should be shared between multiple images.

Building and debugging locally

https://cloud.google.com/cloud-build/docs/build-debug-locally

Triggers

Deploying

You can’t perform that action at this time.