Skip to content

Commit c26a75a

Browse files
authored
fix(viewer): copy message_utils into the viewer image (#201)
* fix(viewer): include message utilities in image * ci: skip dev docker publish for fork PRs
1 parent 8757e33 commit c26a75a

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/docker-publish-dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
build-and-push-dev:
3030
runs-on: ubuntu-latest
3131
# Only run for PRs from the same repo (not forks/dependabot) or workflow_dispatch
32+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
3233
permissions:
3334
contents: read
3435
packages: write

.github/workflows/docker-publish-viewer.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
- 'requirements-viewer.txt'
1212
- 'src/web/**'
1313
- 'src/config.py'
14+
- 'src/realtime.py'
15+
- 'src/message_utils.py'
1416
- 'src/db/**'
1517
- '.github/workflows/docker-publish-viewer.yml'
1618
workflow_dispatch:

Dockerfile.viewer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN uv sync --frozen --no-dev --no-install-project
2020
COPY src/__init__.py ./src/
2121
COPY src/config.py ./src/
2222
COPY src/realtime.py ./src/
23+
COPY src/message_utils.py ./src/
2324
COPY src/db/ ./src/db/
2425
COPY src/web/ ./src/web/
2526

0 commit comments

Comments
 (0)