Commit 343f395
committed
fix: prevent Docker image push on pull requests
The build-and-test workflow was pushing Docker images to ghcr.io on every
pull request, which wastes registry storage and CI resources. This change
makes the push conditional so that:
- Pull requests: build and test only (no push)
- Main branch pushes: build, test, and push
- Version tags: build, test, and push
- Manual workflow dispatch: build, test, and push
This aligns with the pattern used in mission-control repository.1 parent d101a3a commit 343f395
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments