From: romeroalx Date: Mon, 3 Mar 2025 18:51:11 +0000 (+0100) Subject: gh actions: build images and packages using ubuntu-24.04 runners X-Git-Tag: dnsdist-2.0.0-alpha1~51^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46e22d18071826b5df2b8a364c3c15c68232000e;p=thirdparty%2Fpdns.git gh actions: build images and packages using ubuntu-24.04 runners --- diff --git a/.github/workflows/build-docker-images-dispatch.yml b/.github/workflows/build-docker-images-dispatch.yml index 30319060cd..4a5de60b00 100644 --- a/.github/workflows/build-docker-images-dispatch.yml +++ b/.github/workflows/build-docker-images-dispatch.yml @@ -38,7 +38,7 @@ permissions: # least privileges, see https://docs.github.com/en/actions/using-wo jobs: prepare: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: image-tag: ${{ steps.get-image-tag.outputs.tag }} image-name: ${{ steps.get-image-metadata.outputs.name }} diff --git a/.github/workflows/build-docker-images-tags.yml b/.github/workflows/build-docker-images-tags.yml index 07074bd574..b4f8196fa9 100644 --- a/.github/workflows/build-docker-images-tags.yml +++ b/.github/workflows/build-docker-images-tags.yml @@ -14,7 +14,7 @@ permissions: jobs: prepare: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: image-name-suffix: ${{ steps.get-image-version.outputs.version }} image-tag: ${{ steps.get-image-tag.outputs.tag }} diff --git a/.github/workflows/build-docker-images.yml b/.github/workflows/build-docker-images.yml index 9d26c86958..3ce2b98aad 100644 --- a/.github/workflows/build-docker-images.yml +++ b/.github/workflows/build-docker-images.yml @@ -53,7 +53,7 @@ permissions: # least privileges, see https://docs.github.com/en/actions/using-wo jobs: validate-push-image: name: Check only images built from tags and master are pushed - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 with: @@ -67,7 +67,7 @@ jobs: build: name: build docker image for a product - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 needs: validate-push-image outputs: image-digest: ${{ steps.build-image.outputs.digest }} @@ -121,7 +121,7 @@ jobs: name: generate runner list if: ${{ inputs.push }} needs: build - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: runnerlist: ${{ steps.get-runnerlist.outputs.runnerlist }} skiptests: ${{ steps.get-runnerlist.outputs.skiptests }} @@ -130,12 +130,12 @@ jobs: - id: get-runnerlist run: | runner_os=() - [[ -n "${{ contains(inputs.platforms, 'amd64') && 'ubuntu-22.04' || '' }}" ]] && runner_os+=('ubuntu-22.04') + [[ -n "${{ contains(inputs.platforms, 'amd64') && 'ubuntu-24.04' || '' }}" ]] && runner_os+=('ubuntu-24.04') [[ -n "${{ vars.ARM64_USE_UBICLOUD == '1' && contains(inputs.platforms, 'arm64') || '' }}" ]] && runner_os+=('ubicloud-standard-2-arm') echo "runnerlist=$(jo -a ${runner_os[@]})" >> "$GITHUB_OUTPUT" # Skip tests if no runner is suitable for running them. Set a default runner to avoid CI failure if [[ -z "${runner_os[@]}" ]]; then - echo "runnerlist=$(jo -a ubuntu-22.04)" >> "$GITHUB_OUTPUT" + echo "runnerlist=$(jo -a ubuntu-24.04)" >> "$GITHUB_OUTPUT" echo "skiptests=1" >> "$GITHUB_OUTPUT" fi diff --git a/.github/workflows/build-packages.yml b/.github/workflows/build-packages.yml index eed5e63dbe..01048a1972 100644 --- a/.github/workflows/build-packages.yml +++ b/.github/workflows/build-packages.yml @@ -48,7 +48,7 @@ permissions: # least privileges, see https://docs.github.com/en/actions/using-wo jobs: prepare: name: generate OS runner and arch list - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: oslist: ${{ steps.get-oslist.outputs.oslist }} runnerlist: ${{ steps.get-runnerlist.outputs.runnerlist }} @@ -61,7 +61,7 @@ jobs: - id: get-oslist run: echo "oslist=$(jo -a ${{ inputs.os }})" >> "$GITHUB_OUTPUT" - id: get-runnerlist - run: echo "runnerlist=$(jo -a ubuntu-22.04 ${{ vars.ARM64_USE_UBICLOUD == '1' && 'ubicloud-standard-2-arm' || '' }})" >> "$GITHUB_OUTPUT" + run: echo "runnerlist=$(jo -a ubuntu-24.04 ${{ vars.ARM64_USE_UBICLOUD == '1' && 'ubicloud-standard-2-arm' || '' }})" >> "$GITHUB_OUTPUT" - id: get-archlist run: echo "archlist=$(jo -a x86_64 ${{ vars.ARM64_USE_UBICLOUD == '1' && 'aarch64' || '' }})" >> "$GITHUB_OUTPUT" @@ -165,7 +165,7 @@ jobs: check-hashes: needs: build name: Check if hashes were created for all requested targets - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Get list of outputs from build jobs run: echo '${{ toJSON(needs.build.outputs) }}' | jq 'keys[]' | grep -vE 'version|product-name' | tee /tmp/build-outputs.txt @@ -219,7 +219,7 @@ jobs: upload-provenance: needs: [prepare, build, provenance-src, provenance-pkgs] name: Upload the provenance artifacts to downloads.powerdns.com - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: os: ${{fromJson(needs.prepare.outputs.oslist)}} diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 1d666c0150..901d11bcfa 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -18,13 +18,13 @@ permissions: # least privileges, see https://docs.github.com/en/actions/using-wo jobs: prepare: name: generate runner list - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 outputs: runnerlist: ${{ steps.get-runnerlist.outputs.runnerlist }} steps: - run: sudo apt-get update && sudo apt-get -y install jo - id: get-runnerlist - run: echo "runnerlist=$(jo -a ubuntu-22.04 ${{ vars.ARM64_USE_UBICLOUD == '1' && 'ubicloud-standard-2-arm' || '' }})" >> "$GITHUB_OUTPUT" + run: echo "runnerlist=$(jo -a ubuntu-24.04 ${{ vars.ARM64_USE_UBICLOUD == '1' && 'ubicloud-standard-2-arm' || '' }})" >> "$GITHUB_OUTPUT" build: name: build.sh