This is an automated email from the ASF dual-hosted git repository.

hubcio pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iggy-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 2dc773406 ci: move jobs off ubuntu-latest to slim and 26.04 runners 
(#136)
2dc773406 is described below

commit 2dc773406275c5885cdcec711bb5e20b6ae8c887
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Tue Oct 13 11:01:41 2026 +0200

    ci: move jobs off ubuntu-latest to slim and 26.04 runners (#136)
    
    ubuntu-latest moves from Ubuntu 24.04 to 26.04 in November 2026.
    Without a pin, the build and publish jobs change image with no
    commit in this repo. This change pins them to ubuntu-26.04, so
    the CI build keeps the image of the publish jobs.
    
    The checks job runs in about 20 seconds and fits the 1-vCPU
    ubuntu-slim runner, as in apache/iggy. ubuntu-slim has no PyYAML,
    so the .asf.yaml check uses the preinstalled yq instead.
---
 .github/workflows/ci.yml     | 9 ++++-----
 .github/workflows/deploy.yml | 2 +-
 .github/workflows/stage.yml  | 2 +-
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 33220b820..158604cd6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,7 +12,7 @@ concurrency:
 
 jobs:
   checks:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-slim
     steps:
       - name: Checkout Repository
         uses: actions/checkout@v4
@@ -40,13 +40,12 @@ jobs:
       - name: Check licence headers
         run: npm run check:headers
 
+      # ubuntu-slim has yq preinstalled but not PyYAML.
       - name: Validate .asf.yaml
-        run: >-
-          python3 -c "import sys,yaml; yaml.safe_load(open('.asf.yaml'));
-          print('.asf.yaml parses')"
+        run: yq '.' .asf.yaml > /dev/null
 
   build:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-26.04
     steps:
       - name: Checkout Repository
         uses: actions/checkout@v4
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 51be31b04..9b4981cac 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -10,7 +10,7 @@ on:
 
 jobs:
   publish:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-26.04
     steps:
       - name: Checkout Repository
         uses: actions/checkout@v4
diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml
index 8ec5f7908..ddcc1b6ba 100644
--- a/.github/workflows/stage.yml
+++ b/.github/workflows/stage.yml
@@ -8,7 +8,7 @@ on:
 
 jobs:
   publish:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-26.04
     steps:
       - name: Checkout Repository
         uses: actions/checkout@v4

Reply via email to