Skip to content

Commit 1cc0284

Browse files
Add Docker Buildx setup to CI workflow
Added Docker Buildx setup step before building the ML Docker image.
1 parent 4402d16 commit 1cc0284

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci-ml.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
name: CI — ML Service
23

34
on:
@@ -27,12 +28,10 @@ jobs:
2728
- name: Install lint dependencies
2829
run: |
2930
pip install flake8 black isort
30-
# Avoid heavy ML deps (torch/tensorflow) in lint — install only what's needed
3131
[ -f ml/requirements-lint.txt ] && pip install -r ml/requirements-lint.txt || true
3232
[ -f ml/requirements.txt ] && pip install -r ml/requirements.txt --no-deps || true
3333
3434
- name: Black formatting check
35-
# Allow failure if ml/ is mostly empty / not yet written
3635
run: black --check ml/ || echo "::warning::Black check failed — ml/ may be incomplete"
3736

3837
- name: isort import order check
@@ -83,6 +82,9 @@ jobs:
8382
type=sha,prefix=sha-
8483
type=raw,value=latest,enable={{is_default_branch}}
8584
85+
- name: Set up Docker Buildx
86+
uses: docker/setup-buildx-action@v3
87+
8688
- name: Build and push ML Docker image
8789
uses: docker/build-push-action@v5
8890
with:
@@ -93,3 +95,4 @@ jobs:
9395
labels: ${{ steps.meta.outputs.labels }}
9496
cache-from: type=gha
9597
cache-to: type=gha,mode=max
98+
```

0 commit comments

Comments
 (0)