Skip to content

Commit 110ce09

Browse files
committed
chore: split CI workflow - auto tests, manual Docker build
- Tests run automatically on every push to main - Docker build/push only runs when manually triggered via workflow_dispatch - Reduces CI overhead during high velocity development
1 parent 14a7b73 commit 110ce09

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
name: Build Production Image
1+
name: CI / Build Production Image
22

3-
# Manual trigger only - use workflow_dispatch to build on demand
3+
# Tests run automatically on push to main
4+
# Docker build only runs when manually triggered
45
on:
6+
push:
7+
branches: [main]
58
workflow_dispatch:
69

710
env:
811
REGISTRY: ghcr.io
9-
IMAGE_NAME: ${{ github.repository }}
1012

1113
jobs:
1214
test:
@@ -31,6 +33,8 @@ jobs:
3133
name: Build & Push Docker Image
3234
runs-on: ubuntu-latest
3335
needs: test
36+
# Only run on manual trigger
37+
if: github.event_name == 'workflow_dispatch'
3438
permissions:
3539
contents: read
3640
packages: write

0 commit comments

Comments
 (0)