Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only publish to ghcr.io if pipeline runs on main branch #92

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

Vincinator
Copy link
Contributor

  • main branch has branch protection, so only maintainers must be allowed to trigger publish process (which is enforced already)
  • PR pipelines need to check if build works, so we must skip publishing in order to get green pipelines

* main branch has branch protection, so only maintainers must be allowed to trigger publish process (which is enforced already)
* PR pipelines need to check if build works, so we must skip publishing in order to get green pipelines
Copy link
Member

@fwilhe fwilhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, should enable PR builds to work properly and will avoid unneeded publication of PR built images

More improvements and consolidation can be done afterwards

thanks @Vincinator

@Vincinator Vincinator marked this pull request as ready for review July 29, 2024 09:28
@Vincinator Vincinator merged commit b12d1cf into main Jul 29, 2024
4 checks passed
@Vincinator Vincinator deleted the split-build-and-publish branch July 29, 2024 10:50
@Vincinator Vincinator restored the split-build-and-publish branch July 29, 2024 10:50
@Vincinator Vincinator deleted the split-build-and-publish branch July 29, 2024 10:50
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.

2 participants