Skip to content

fix: don't push Docker images on pull requests#27

Merged
adityathebe merged 1 commit intomainfrom
fix/workflow-no-pr-push
Nov 6, 2025
Merged

fix: don't push Docker images on pull requests#27
adityathebe merged 1 commit intomainfrom
fix/workflow-no-pr-push

Conversation

@adityathebe
Copy link
Member

Only push images on main/tags, not PRs

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.
@adityathebe adityathebe merged commit 343f395 into main Nov 6, 2025
2 of 5 checks passed
@adityathebe
Copy link
Member Author

this has been reversed in #25

we need to push the image for each pr for the tests

@adityathebe adityathebe deleted the fix/workflow-no-pr-push branch November 6, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments