cloudbuild.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. artifacts:
  37. objects:
  38. location: 'gs://sentryio-cloudbuild-opensource/getsentry/sentry/$COMMIT_SHA/'
  39. paths: ['dist/*.whl']
  40. options:
  41. # We need more memory for Webpack builds & e2e self-hosted tests
  42. machineType: 'E2_HIGHCPU_8'
  43. env:
  44. - 'SENTRY_IMAGE=us.gcr.io/$PROJECT_ID/sentry:$COMMIT_SHA'