diff --git a/.github/workflows/pr-compile-check.yaml b/.github/workflows/pr-compile-check.yaml index d9f3dc92ab5..7ef25adc1ac 100644 --- a/.github/workflows/pr-compile-check.yaml +++ b/.github/workflows/pr-compile-check.yaml @@ -30,3 +30,15 @@ jobs: push: false load: false provenance: false + + - name: Attempt to build current source for CentOS 7 using static config + uses: docker/build-push-action@v5 + with: + context: . + file: ./dockerfiles/Dockerfile.centos7 + # No need to use after this so discard completely + push: false + load: false + provenance: false + build-args: + - EXTRA_BUILD_ARGS=-DFLB_STATIC_CONF=/tmp diff --git a/dockerfiles/Dockerfile.centos7 b/dockerfiles/Dockerfile.centos7 index daeb49a9771..8cb3383ec4a 100644 --- a/dockerfiles/Dockerfile.centos7 +++ b/dockerfiles/Dockerfile.centos7 @@ -16,6 +16,8 @@ RUN yum -y update && \ COPY . /src/ WORKDIR /src/build +ARG EXTRA_BUILD_ARGS + RUN cmake3 -DCMAKE_INSTALL_PREFIX=/opt/fluent-bit/ -DCMAKE_INSTALL_SYSCONFDIR=/etc/ \ -DFLB_RELEASE=On -DFLB_TRACE=On \ -DFLB_TESTS_INTERNAL=On -DFLB_TESTS_RUNTIME=On \ @@ -23,6 +25,6 @@ RUN cmake3 -DCMAKE_INSTALL_PREFIX=/opt/fluent-bit/ -DCMAKE_INSTALL_SYSCONFDIR=/e -DFLB_OUT_KAFKA=On \ -DFLB_JEMALLOC=On \ -DFLB_CHUNK_TRACE=On \ - -DFLB_OUT_PGSQL=On ../ + -DFLB_OUT_PGSQL=On ${EXTRA_BUILD_ARGS} ../ RUN make -j "$(getconf _NPROCESSORS_ONLN)"