-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.23 KB
/
Copy pathdocker.yml
File metadata and controls
44 lines (41 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Docker
on:
push:
branches: [main]
jobs:
backend-images:
name: Build backend (${{ matrix.target }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: lean
build_args: ""
- target: ml
build_args: "INCLUDE_ML=true"
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build backend image (${{ matrix.target }})
uses: docker/build-push-action@v6
with:
context: ./backend
push: false
build-args: ${{ matrix.build_args }}
tags: floodops-backend:${{ matrix.target }}
# A silent ML build break (torch / 3.12 incompat, moved weight URL, bad
# layer order) is worse than a red job — the matrix entry is NOT
# continue-on-error, so the ML variant failing fails the workflow.
frontend-image:
name: Build frontend image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build frontend image
uses: docker/build-push-action@v6
with:
context: ./frontend
push: false
tags: floodops-frontend:latest