nginx_proxy/cloudbuild.yaml (8 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', '-t', 'gcr.io/${PROJECT_ID}/nginx-proxy:latest', '.'] - name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'gcr.io/${PROJECT_ID}/nginx-proxy:${_RC_NAME}', '.'] images: - 'gcr.io/$PROJECT_ID/nginx-proxy:latest' - 'gcr.io/$PROJECT_ID/nginx-proxy:${_RC_NAME}'