Skip to content

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

Closed
adityathebe wants to merge 2 commits intomainfrom
fix/workflow-pr-push
Closed

fix: don't push Docker images on pull requests#26
adityathebe wants to merge 2 commits intomainfrom
fix/workflow-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
Copy link
Member Author

Wrong branch - recreating from main

@adityathebe adityathebe closed this Nov 6, 2025
@adityathebe adityathebe deleted the fix/workflow-pr-push branch November 6, 2025 09:12
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