-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1.26 KB
/
Copy pathdocker.yml
File metadata and controls
46 lines (43 loc) · 1.26 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
45
46
name: Docker build
# Builds both images (no push) only when something that affects them changes,
# so Dockerfile / dependency / settings breakage is caught before deploying.
on:
push:
branches: [main]
paths:
- "Dockerfile"
- "deploy/**"
- "docker-compose.yml"
- ".dockerignore"
- "pyproject.toml"
- "uv.lock"
- "config/settings.py"
- "infra/minimal_config.py"
- "simpleaudit_studio/**"
- ".github/workflows/docker.yml"
pull_request:
paths:
- "Dockerfile"
- "deploy/**"
- "docker-compose.yml"
- ".dockerignore"
- "pyproject.toml"
- "uv.lock"
- "config/settings.py"
- "infra/minimal_config.py"
- "simpleaudit_studio/**"
- ".github/workflows/docker.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build HF Space / demo image
run: docker build -t simpleaudit-studio:ci .
- name: Build Compose image
run: docker build -f deploy/compose/Dockerfile -t simpleaudit-studio-compose:ci .
- name: Validate compose file
run: cp .env.example .env && docker compose config --quiet