Skip to content

Commit 3382318

Browse files
committed
self-running workers
1 parent 0524741 commit 3382318

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

.github/workflows/docker-latest.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@ concurrency:
2020

2121
jobs:
2222
build-latest:
23-
runs-on: ubuntu-latest
23+
runs-on: [self-hosted, Linux, X64]
2424
steps:
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
2727

28-
- name: Set up QEMU
29-
uses: docker/setup-qemu-action@v3
30-
31-
- name: Set up Docker Buildx
32-
uses: docker/setup-buildx-action@v3
33-
3428
- name: Log in to Docker Hub
3529
uses: docker/login-action@v3
36-
if: github.event_name == 'push' # Only log in on pushes
30+
# if: github.event_name == 'push' # Only log in on pushes
3731
with:
3832
username: ${{ secrets.DOCKER_USERNAME }}
3933
password: ${{ secrets.DOCKER_PASSWORD }}
4034

35+
- name: Set up QEMU
36+
uses: docker/setup-qemu-action@v3
37+
38+
- name: Set up Docker Buildx
39+
uses: docker/setup-buildx-action@v3
40+
4141
- name: Build and push latest image
4242
uses: docker/build-push-action@v2
4343
with:

.github/workflows/docker-release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ env:
1010

1111
jobs:
1212
docker-build:
13-
runs-on: ubuntu-latest
13+
runs-on: [self-hosted, Linux, X64]
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
1717

18-
- name: Set up QEMU
19-
uses: docker/setup-qemu-action@v3
20-
21-
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v3
23-
2418
- name: Log in to Docker Hub
2519
uses: docker/login-action@v3
2620
with:
2721
username: ${{ secrets.DOCKER_USERNAME }}
2822
password: ${{ secrets.DOCKER_PASSWORD }}
2923

24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
3030
- name: Extract version from tag
3131
id: tag_version
3232
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
Lint:
22-
runs-on: ubuntu-latest
22+
runs-on: [self-hosted, Linux, X64]
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v4
@@ -46,14 +46,16 @@ jobs:
4646
key: venv-${{ runner.os }}-python-3.13-${{ hashFiles('**/poetry.lock') }}
4747

4848
- name: Install dependencies
49-
run: poetry install
49+
run: |
50+
poetry config virtualenvs.in-project true
51+
poetry install --with dev
5052
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
5153

5254
- name: Lint source code
5355
run: make lint
5456

5557
Test:
56-
runs-on: ubuntu-latest
58+
runs-on: [self-hosted, Linux, X64]
5759
steps:
5860
- name: Checkout repository
5961
uses: actions/checkout@v4
@@ -80,7 +82,9 @@ jobs:
8082
key: venv-${{ runner.os }}-python-3.13-${{ hashFiles('**/poetry.lock') }}
8183

8284
- name: Install dependencies
83-
run: poetry install
85+
run: |
86+
poetry config virtualenvs.in-project true
87+
poetry install --with dev
8488
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
8589
8690
- name: Run tests

0 commit comments

Comments
 (0)