Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # docker-compose build example
- steps:
- - name: "gcr.io/$PROJECT_ID/docker-compose"
- id: "build"
- env:
- - "IMAGE_NAME=gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA"
- args:
- - "build"
- - name: "gcr.io/cloud-builders/docker"
- id: "retag"
- wait_for: ["build"]
- args:
- - "tag"
- - "gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA"
- - "gcr.io/$PROJECT_ID/$REPO_NAME"
- - name: "gcr.io/cloud-builders/docker"
- id: "inspect"
- wait_for: ["retag"]
- args:
- - "inspect"
- - "gcr.io/$PROJECT_ID/$REPO_NAME"
- images:
- - "gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA"
- - "gcr.io/$PROJECT_ID/$REPO_NAME:latest"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement