Skip to content

Commit 7f5c6f5

Browse files
committed
feat(docker): add docker build and publish steps
1 parent de0dadb commit 7f5c6f5

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/build.yaml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ on:
1010

1111
jobs:
1212
lint-test:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: [3.12, 3.13]
16+
python-version: [3.12]
17+
1718
steps:
1819
- uses: actions/checkout@v2
1920

@@ -23,5 +24,25 @@ jobs:
2324
- name: Setup python ${{ matrix.python-version }}
2425
run: uv python install ${{ matrix.python-version }}
2526

26-
- name: Install dependencies
27-
run: uv sync --no-dev
27+
- name: Insall ruff
28+
run: uv add ruff
29+
30+
- name: Run ruff
31+
run: uv ruff check --fix --exit-zero
32+
33+
docker-build:
34+
runs-on: ubuntu-latest
35+
needs: lint-test
36+
steps:
37+
- uses: actions/checkout@v2
38+
39+
# - name: Login Docker Hub
40+
# uses: docker/login-action@v3
41+
# with:
42+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
43+
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
44+
45+
- name: Build Compose Image
46+
run: |
47+
docker compose build
48+
# docker compose push

0 commit comments

Comments
 (0)