1
0

test-image-build.yml 994 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: Test container image build
  2. on:
  3. pull_request:
  4. paths:
  5. - .github/workflows/build-nightly.yml
  6. - .github/workflows/build-push-pr.yml
  7. - .github/workflows/build-releases.yml
  8. - .github/workflows/test-image-build.yml
  9. - Dockerfile
  10. - streaming/Dockerfile
  11. permissions:
  12. contents: read
  13. jobs:
  14. build-image:
  15. concurrency:
  16. group: ${{ github.workflow }}-${{ github.ref }}
  17. cancel-in-progress: true
  18. uses: ./.github/workflows/build-container-image.yml
  19. with:
  20. file_to_build: Dockerfile
  21. platforms: linux/amd64 # Testing only on native platform so it is performant
  22. cache: true
  23. build-image-streaming:
  24. concurrency:
  25. group: ${{ github.workflow }}-${{ github.ref }}-streaming
  26. cancel-in-progress: true
  27. uses: ./.github/workflows/build-container-image.yml
  28. with:
  29. file_to_build: streaming/Dockerfile
  30. platforms: linux/amd64 # Testing only on native platform so it is performant
  31. cache: true