stackdriver_monitoring_agent/cloudbuild.yaml (10 lines of code) (raw):

# Config for building with Google Cloud Build # # This produces a container with two tags, "latest" and _RC_NAME, which must be # specified via a command-line flag. # # Run with: # gcloud builds submit --config cloudbuild.yaml . \ # --substitutions=_RC_NAME=20180101-RC00 steps: - name: 'gcr.io/cloud-builders/docker' args: - 'build' - '--tag=gcr.io/$PROJECT_ID/stackdriver-monitoring-agent:latest' - '--tag=gcr.io/$PROJECT_ID/stackdriver-monitoring-agent:${_RC_NAME}' - '.' images: - 'gcr.io/$PROJECT_ID/stackdriver-monitoring-agent:latest' - 'gcr.io/$PROJECT_ID/stackdriver-monitoring-agent:${_RC_NAME}'