From 8b7ea86a8c04c167d36f0a0efc80282db4f675cd Mon Sep 17 00:00:00 2001 From: romeroalx Date: Wed, 31 Jan 2024 11:40:24 +0100 Subject: [PATCH 1/3] Dockerfile: skip installing xdp packages for debian bullseye --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fb5f9e3..e206222 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,7 +55,7 @@ RUN inv install-clang RUN inv install-clang-tidy-tools RUN inv install-auth-build-deps RUN inv install-rec-build-deps -RUN inv install-dnsdist-build-deps +RUN inv install-dnsdist-build-deps $([ "$(. /etc/os-release && echo $VERSION_CODENAME)" = "bullseye" ] && echo "--skipXDP=True") # Copy permissions for /opt and node_modules like Github runner VMs RUN sudo mkdir -p /usr/local/lib/node_modules From 6e3d9f15e093ddfc357ee87c9729f741459e6c8d Mon Sep 17 00:00:00 2001 From: romeroalx Date: Wed, 31 Jan 2024 11:51:48 +0100 Subject: [PATCH 2/3] upgrade actions: checkout docker-login delete-pkgs --- .github/workflows/build-debian-images.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-debian-images.yaml b/.github/workflows/build-debian-images.yaml index 7fa136a..8d5cf67 100644 --- a/.github/workflows/build-debian-images.yaml +++ b/.github/workflows/build-debian-images.yaml @@ -24,7 +24,7 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: | echo "image-id-lowercase=ghcr.io/${{ github.repository }}/${{ matrix.image-id }}" | tr '[:upper:]' '[:lower:]' >> "$GITHUB_ENV" @@ -37,7 +37,7 @@ jobs: - name: Login to GitHub Container Registry if: ${{ github.event_name != 'pull_request' }} - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -67,8 +67,10 @@ jobs: echo "${{ github.repository }}" | awk -F'/' '{print "repo-name="$2}' >> "$GITHUB_ENV" - name: Purge old images keeping the 5 more recent ones - uses: actions/delete-package-versions@v4 + # FIXME: move to tag v5 when available. + uses: actions/delete-package-versions@v5.0.0 with: package-name: ${{ env.repo-name }}/${{ matrix.image-id }} package-type: container min-versions-to-keep: 5 + delete-only-untagged-versions: true From c9d242872da8f9c8e4643fc6b635968853cdb2c1 Mon Sep 17 00:00:00 2001 From: romeroalx Date: Thu, 1 Feb 2024 14:47:11 +0100 Subject: [PATCH 3/3] gh actions: set fail-fast to false for building images --- .github/workflows/build-debian-images.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-debian-images.yaml b/.github/workflows/build-debian-images.yaml index 8d5cf67..c4b1924 100644 --- a/.github/workflows/build-debian-images.yaml +++ b/.github/workflows/build-debian-images.yaml @@ -19,6 +19,7 @@ jobs: debian-release-name: bullseye-slim - image-id: debian-12-pdns-base debian-release-name: bookworm-slim + fail-fast: false runs-on: ubuntu-22.04 permissions: contents: read @@ -61,6 +62,7 @@ jobs: image-id: - debian-11-pdns-base - debian-12-pdns-base + fail-fast: false steps: - name: Get repository name run: |