Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. # docker-compose build example
  2. steps:
  3. - name: "gcr.io/$PROJECT_ID/docker-compose"
  4. id: "build"
  5. env:
  6. - "IMAGE_NAME=gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA"
  7. args:
  8. - "build"
  9. - name: "gcr.io/cloud-builders/docker"
  10. id: "retag"
  11. wait_for: ["build"]
  12. args:
  13. - "tag"
  14. - "gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA"
  15. - "gcr.io/$PROJECT_ID/$REPO_NAME"
  16. - name: "gcr.io/cloud-builders/docker"
  17. id: "inspect"
  18. wait_for: ["retag"]
  19. args:
  20. - "inspect"
  21. - "gcr.io/$PROJECT_ID/$REPO_NAME"
  22. images:
  23. - "gcr.io/$PROJECT_ID/$REPO_NAME:$SHORT_SHA"
  24. - "gcr.io/$PROJECT_ID/$REPO_NAME:latest"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement