fix(ci): use single label runs-on for Forgejo runner v12 compatibility

Runner v12.7.3 uses labels: [docker linux debian ubuntu-latest].
Changed from 'runs-on: [linux, docker]' to 'runs-on: docker' to fix:
- 'runs-on key not defined' error
- 'github.ref == refs/heads/main evaluated to false' error
This commit is contained in:
Bu5hm4nn
2026-04-01 12:18:19 +02:00
parent a0f245b212
commit 7ffa04709c

View File

@@ -11,7 +11,7 @@ env:
jobs: jobs:
lint: lint:
runs-on: [linux, docker] runs-on: docker
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
steps: steps:
@@ -30,7 +30,7 @@ jobs:
run: black --check app tests scripts run: black --check app tests scripts
test: test:
runs-on: [linux, docker] runs-on: docker
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
env: env:
@@ -61,7 +61,7 @@ jobs:
-v --tb=short -v --tb=short
type-check: type-check:
runs-on: [linux, docker] runs-on: docker
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
steps: steps:
@@ -86,7 +86,7 @@ jobs:
echo "Type check completed successfully" echo "Type check completed successfully"
build: build:
runs-on: [linux, docker] runs-on: docker
needs: [lint, test] needs: [lint, test]
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
@@ -120,7 +120,7 @@ jobs:
provenance: false provenance: false
deploy: deploy:
runs-on: [linux, docker] runs-on: docker
needs: build needs: build
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
container: container: