Skip to content

Commit 6fe1b52

Browse files
GeiserXGeiserX
andauthored
ci: use GitHub-hosted ubuntu-latest runners (#32)
Public repos get free, unlimited standard GitHub-hosted runners. Move self-hosted Linux CI jobs to ubuntu-latest: frees the home-lab servers, runs PR code in throwaway isolated VMs (removing the fork-PR attack surface), and costs nothing on public repos. The previous self-hosted fork-guard is removed as it is no longer needed. Co-authored-by: GeiserX <drumsergio@gmail.com>
1 parent 4bd2db8 commit 6fe1b52

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/dockerhub-description.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
update-description:
11-
runs-on: [self-hosted, Linux, X64]
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v6
1414

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
test:
1919
name: Test
20-
runs-on: [self-hosted, Linux, X64]
20+
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
2323
python-version: ["3.10", "3.11", "3.12", "3.13"]
@@ -60,7 +60,7 @@ jobs:
6060
docker-build:
6161
name: Build and Push Docker Image
6262
needs: test
63-
runs-on: [self-hosted, Linux, X64]
63+
runs-on: ubuntu-latest
6464
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
6565
permissions:
6666
contents: read
@@ -107,7 +107,7 @@ jobs:
107107
build-package:
108108
name: Build Python Package
109109
needs: test
110-
runs-on: [self-hosted, Linux, X64]
110+
runs-on: ubuntu-latest
111111
if: startsWith(github.ref, 'refs/tags/v')
112112

113113
steps:
@@ -152,7 +152,7 @@ jobs:
152152
release:
153153
name: Create GitHub Release
154154
needs: [test, build-package, docker-build]
155-
runs-on: [self-hosted, Linux, X64]
155+
runs-on: ubuntu-latest
156156
if: startsWith(github.ref, 'refs/tags/v')
157157
permissions:
158158
contents: write

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
stale:
8-
runs-on: [self-hosted, Linux, X64]
8+
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/stale@v10
1111
with:

0 commit comments

Comments
 (0)