ci: use -slim runner for small jobs
No need to spin up full VM runners for small automation tasks, when we can use single-CPU runners in containers instead. https://docs.github.com/en/actions/reference/runners/github-hosted-runners#single-cpu-runners (some of this will potentially not work, because dependencies in the slim image might not be available - however, it makes no sense to create this as a PR, because all jobs touched here run on branches only. Thus pushing directly to main)
This commit is contained in:
@@ -9,7 +9,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
backport:
|
backport:
|
||||||
name: Backport
|
name: Backport
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-slim
|
||||||
# It triggers only when PR is already merged on either:
|
# It triggers only when PR is already merged on either:
|
||||||
#
|
#
|
||||||
# - The merge event itself (action != labeled) or
|
# - The merge event itself (action != labeled) or
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
group: ci-tag-${{ (github.ref == 'refs/heads/main' && github.ref) || github.run_id }}
|
group: ci-tag-${{ (github.ref == 'refs/heads/main' && github.ref) || github.run_id }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
if: vars.RELEASE_ENABLED
|
if: vars.RELEASE_ENABLED
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-slim
|
||||||
needs:
|
needs:
|
||||||
- docs
|
- docs
|
||||||
- test
|
- test
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
name: Prepare
|
name: Prepare
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-slim
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
name: GitHub
|
name: GitHub
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-slim
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
steps:
|
steps:
|
||||||
@@ -129,7 +129,7 @@ jobs:
|
|||||||
|
|
||||||
docker:
|
docker:
|
||||||
name: Docker Hub
|
name: Docker Hub
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-slim
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
if: |
|
if: |
|
||||||
@@ -180,7 +180,7 @@ jobs:
|
|||||||
|
|
||||||
docker-description:
|
docker-description:
|
||||||
name: Docker Hub Description
|
name: Docker Hub Description
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-slim
|
||||||
if: |
|
if: |
|
||||||
vars.DOCKER_REPO && vars.DOCKER_USER &&
|
vars.DOCKER_REPO && vars.DOCKER_USER &&
|
||||||
github.ref == 'refs/tags/devel'
|
github.ref == 'refs/tags/devel'
|
||||||
|
|||||||
Reference in New Issue
Block a user