]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions: build images and packages using ubuntu-24.04 runners
authorromeroalx <alexis.romero@open-xchange.com>
Mon, 3 Mar 2025 18:51:11 +0000 (19:51 +0100)
committerromeroalx <alexis.romero@open-xchange.com>
Mon, 3 Mar 2025 18:51:11 +0000 (19:51 +0100)
.github/workflows/build-docker-images-dispatch.yml
.github/workflows/build-docker-images-tags.yml
.github/workflows/build-docker-images.yml
.github/workflows/build-packages.yml
.github/workflows/builder.yml

index 30319060cd9ab430de58d3cf0da510a8b57a9133..4a5de60b001993da21a3ec04a0cc840fced22dc4 100644 (file)
@@ -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 }}
index 07074bd574528b2cdc77080310a7c2431cab94b7..b4f8196fa9ee5f194f28e7bdda815efc7e75fc39 100644 (file)
@@ -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 }}
index 9d26c86958458c5bc1876ef6b45e3a1628fd7af1..3ce2b98aadc36cdf9ce291c826f9050db5029736 100644 (file)
@@ -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
 
index eed5e63dbeb51c9ea8c995b5e42852762cae8fdc..01048a197229f51a799984b6e21669b8f8f0407e 100644 (file)
@@ -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)}}
index 1d666c01503dcf8264bde0901c585894b58d5e1a..901d11bcfa1251c317bf89e55c54af79230b0397 100644 (file)
@@ -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