From 150496f753f24183c12b5c0babb8e563fdffe3b5 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 24 Aug 2026 21:31:20 +0300 Subject: [PATCH 1/2] Build the same for postgres:18 too --- .github/dependabot.yml | 5 ++++- .github/workflows/testing.yml | 8 ++++++-- Dockerfile => 17/Dockerfile | 0 18/Dockerfile | 11 +++++++++++ 4 files changed, 21 insertions(+), 3 deletions(-) rename Dockerfile => 17/Dockerfile (100%) create mode 100644 18/Dockerfile diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 29ebc6e..86ab32f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,7 +2,10 @@ version: 2 updates: - package-ecosystem: "docker" - directory: "/" + directories: + - "/" + - "/17" + - "/18" schedule: interval: "daily" open-pull-requests-limit: 5 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index cf40ead..555c54d 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -14,6 +14,9 @@ permissions: read-all jobs: docker: runs-on: ubuntu-26.04 + strategy: + matrix: + version: [17, 18] steps: - uses: actions/checkout@v7 @@ -24,8 +27,9 @@ jobs: docker compose --version - - name: Build kiwitcms/postgres + - name: Build kiwitcms/postgres:${{ matrix.version }} + working-directory: ${{ matrix.version }} run: | - docker build -t kiwitcms/postgres . + docker build -t kiwitcms/postgres:${{ matrix.version }} . docker images --digests diff --git a/Dockerfile b/17/Dockerfile similarity index 100% rename from Dockerfile rename to 17/Dockerfile diff --git a/18/Dockerfile b/18/Dockerfile new file mode 100644 index 0000000..978c383 --- /dev/null +++ b/18/Dockerfile @@ -0,0 +1,11 @@ +FROM postgres:18@sha256:4aabea78cf39b90e834caf3af7d602a18565f6fe2508705c8d01aa63245c2e20 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y --no-install-recommends ca-certificates curl gnupg \ + && curl -sSL https://keys.datadoghq.com/DATADOG_APT_KEY_CURRENT.public | gpg --dearmor --output /usr/share/keyrings/datadog-archive-keyring.gpg \ + && echo "deb [signed-by=/usr/share/keyrings/datadog-archive-keyring.gpg] https://apt.datadoghq.com/ stable 7" > /etc/apt/sources.list.d/datadog.list \ + && apt-get update \ + && apt-get install -y --no-install-recommends datadog-agent datadog-signing-keys \ + && rm -rf /var/lib/apt/lists/* From 4c2fccae39e3352a1c157fc4c9d73fd0899660df Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 24 Aug 2026 21:33:33 +0300 Subject: [PATCH 2/2] Remove --digests option when calling docker images --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 555c54d..b436bb3 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -32,4 +32,4 @@ jobs: run: | docker build -t kiwitcms/postgres:${{ matrix.version }} . - docker images --digests + docker images