cloudbuild.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. steps:
  2. - name: 'gcr.io/kaniko-project/executor:v1.5.1'
  3. id: builder-image
  4. args:
  5. [
  6. '--cache=true',
  7. '--use-new-run',
  8. '--build-arg',
  9. 'SOURCE_COMMIT=$COMMIT_SHA',
  10. '--destination=us.gcr.io/$PROJECT_ID/sentry-builder:$COMMIT_SHA',
  11. '-f',
  12. './self-hosted/builder.dockerfile',
  13. ]
  14. timeout: 180s
  15. - name: 'us.gcr.io/$PROJECT_ID/sentry-builder:$COMMIT_SHA'
  16. id: builder-run
  17. env:
  18. - 'SOURCE_COMMIT=$COMMIT_SHA'
  19. timeout: 600s
  20. - name: 'gcr.io/kaniko-project/executor:v1.5.1'
  21. id: runtime-image
  22. waitFor:
  23. - builder-run
  24. args:
  25. [
  26. '--cache=true',
  27. '--use-new-run',
  28. '--build-arg',
  29. 'SOURCE_COMMIT=$COMMIT_SHA',
  30. '--destination=us.gcr.io/$PROJECT_ID/sentry:$COMMIT_SHA',
  31. '-f',
  32. './self-hosted/Dockerfile',
  33. ]
  34. timeout: 300s
  35. timeout: 2640s
  36. options:
  37. # We need more memory for Webpack builds & e2e self-hosted tests
  38. machineType: 'E2_HIGHCPU_8'
  39. env:
  40. - 'SENTRY_IMAGE=us.gcr.io/$PROJECT_ID/sentry:$COMMIT_SHA'