Skip to content

ci: don't push images on pull requests - #13

Merged
beriberikix merged 1 commit into
mainfrom
fix/no-push-on-pr
Aug 26, 2026
Merged

ci: don't push images on pull requests#13
beriberikix merged 1 commit into
mainfrom
fix/no-push-on-pr

Conversation

@beriberikix

Copy link
Copy Markdown
Contributor

The registry login and push guards in publish.yml were commented out, so push: true ran unconditionally and every PR published its full matrix to ghcr.io before review.

This showed up in #12: ghcr.io/embeddedcontainers/ncs:v3.3.0SDK, :v3.3.1SDK and :v3.4.0SDK were all live in the registry before that PR merged, as @markus-becker-tridonic-com pointed out.

This restores the guards:

  • if: github.event_name != 'pull_request' on the login step
  • push: ${{ github.event_name != 'pull_request' }} on the build step

matching what embeddedcontainers/zephyr already does. PRs now build only; pushes to main still publish.

🤖 Generated with Claude Code

The registry login and push guards were commented out, so every PR
published its matrix to ghcr.io before review. #12 added v3.3.0,
v3.3.1 and v3.4.0, and all three tags were live in the registry
before the PR merged.

Restore the `github.event_name != 'pull_request'` guards so PRs build
only, matching embeddedcontainers/zephyr.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@beriberikix
beriberikix merged commit f800a02 into main Aug 26, 2026
13 checks passed
@beriberikix
beriberikix deleted the fix/no-push-on-pr branch August 26, 2026 13:28
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