Building your application manually
In this section, you’ll build an example application with Cloud Build. Follow these steps:
- To start, set an environment variable to your project ID using the following command:
export PROJECT_ID=$(gcloud config get-value project)
- If you don’t already have the book repository cloned locally, clone it now.
cd
into thech5
folder.In that folder, you’ll find the code and assets of the same Java application used in the previous chapters but with some differences, as this folder includes a
cloudbuild.yaml
file, an example build specification defining the steps of your build.- Open the file in a text editor to see the following contents:
steps: - name: maven:3-eclipse-temurin-17   entrypoint: mvn   args: ["package", "-Dmaven.test.skip=true"]   id: package - name: 'gcr.io/cloud-builders/docker'   args: ['build', '.', '-t&apos...