2023-07-18 04:36:12 -07:00
|
|
|
name: Test container image build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- .github/workflows/build-nightly.yml
|
|
|
|
- .github/workflows/build-push-pr.yml
|
|
|
|
- .github/workflows/build-releases.yml
|
|
|
|
- .github/workflows/test-image-build.yml
|
|
|
|
- Dockerfile
|
2023-11-28 02:04:40 -08:00
|
|
|
- streaming/Dockerfile
|
2023-07-18 04:36:12 -07:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-image:
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
|
|
with:
|
2023-11-28 02:04:40 -08:00
|
|
|
file_to_build: Dockerfile
|
2023-07-18 04:36:12 -07:00
|
|
|
platforms: linux/amd64 # Testing only on native platform so it is performant
|
2023-11-28 02:04:40 -08:00
|
|
|
cache: true
|
|
|
|
|
|
|
|
build-image-streaming:
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}-streaming
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
uses: ./.github/workflows/build-container-image.yml
|
|
|
|
with:
|
|
|
|
file_to_build: streaming/Dockerfile
|
|
|
|
platforms: linux/amd64 # Testing only on native platform so it is performant
|
|
|
|
cache: true
|