From 77fc9b9f58c40b898b1127e56bfbc305d86dae25 Mon Sep 17 00:00:00 2001 From: Jaime Yera Hidalgo <106755265+jaimeyh@users.noreply.github.com> Date: Tue, 26 Nov 2024 09:56:02 +0100 Subject: [PATCH] APPLY stig ubi type (#111) --- .github/workflows/build.yaml | 6 ++++++ Dockerfile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f4350fa20..b818eb9b8 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,6 +23,12 @@ jobs: runs-on: ubuntu-latest name: ${{ matrix.docker }} steps: + - name: Login to Quay.io + uses: docker/login-action@v2 + with: + registry: quay.io + username: ${{ secrets.QUAY_UBI_READONLY_USERNAME }} + password: ${{ secrets.QUAY_UBI_READONLY_PASSWORD }} - name: build uses: sysdiglabs/exporter-builder@v1.1 with: diff --git a/Dockerfile b/Dockerfile index 570fc96c1..62f0c0c92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ EXPOSE 9187 USER 59000:59000 ENTRYPOINT [ "/bin/postgres_exporter" ] -FROM quay.io/sysdig/sysdig-mini-ubi9:1.3.11 AS ubi +FROM quay.io/sysdig/sysdig-stig-mini-ubi9:1.2.0 AS ubi COPY --from=builder /bin/postgres_exporter /bin/postgres_exporter EXPOSE 9187 USER 59000:59000