fix(ci): standardize runs-on labels and remove unused docker.io
- Changed all jobs from 'runs-on: docker' to 'runs-on: [linux, docker]' to match ci.yaml pattern and runner labels configuration - Removed unnecessary docker.io package from deploy job since Docker commands run on remote SSH host, not inside CI container - Aligned with Forgejo runner config having both 'linux' and 'docker' labels
This commit is contained in:
@@ -11,7 +11,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: docker
|
runs-on: [linux, 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: docker
|
runs-on: [linux, 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: docker
|
runs-on: [linux, 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: docker
|
runs-on: [linux, 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: docker
|
runs-on: [linux, docker]
|
||||||
needs: build
|
needs: build
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
container:
|
container:
|
||||||
@@ -143,7 +143,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y bash openssh-client curl docker.io
|
apt-get update && apt-get install -y bash openssh-client curl
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
chmod 700 ~/.ssh
|
chmod 700 ~/.ssh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user