Skip to content

Commit

Permalink
Pin runner images to 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Parnassius committed Jan 18, 2025
1 parent 76ba809 commit f41d56b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 11 deletions.
18 changes: 15 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
extends: [
'config:best-practices',
'config:semverAllMonthly',
"config:best-practices",
"config:semverAllMonthly",
],
additionalBranchPrefix: "{{datasource}}-",
customManagers: [
{
customType: "regex",
datasourceTemplate: "github-runners",
depTypeTemplate: "github-runner",
versioningTemplate: "docker",
fileMatch: ["^\\.github/workflows/.+\\.ya?ml$"],
matchStrings: [
"[\"']?(?<depName>[^\\s]+?)-(?<currentValue>[^\\s]+?)[\"']?\\s+# renovate: github-runner",
],
},
],
additionalBranchPrefix: '{{categories}}-',
}
12 changes: 6 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
arch: [amd64, arm64]
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
run: cat coverage/coverage.md >> $GITHUB_STEP_SUMMARY

secrets-check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
has-secrets: ${{ steps.secrets-check.outputs.has-secrets }}
steps:
Expand All @@ -60,7 +60,7 @@ jobs:
run: echo "has-secrets=${{ secrets.TESTS_BOT_USERNAME != '' }}" >> $GITHUB_OUTPUT

integration:
runs-on: ubuntu-24.04 # switch back to ubuntu-latest as soon as it defaults to 24.04
runs-on: ubuntu-24.04
needs: secrets-check
if: needs.secrets-check.outputs.has-secrets == 'true'
steps:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
TESTS_MOD_PASSWORD: ${{ secrets.TESTS_MOD_PASSWORD }}

coverage-badge:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: test
if: github.event_name == 'push' && github.ref_name == 'main'
permissions:
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
packages: write
needs: [test, integration]
if: contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.ref_name == 'main'
runs-on: ubuntu-24.04 # switch back to ubuntu-latest as soon as it defaults to 24.04
runs-on: ubuntu-24.04
strategy:
matrix:
arch: [amd64, arm64]
Expand All @@ -165,7 +165,7 @@ jobs:
contents: read
packages: write
needs: publish
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Get target image name
id: image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-showdown-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-veekun-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit f41d56b

Please sign in to comment.