Skip to content

fix(ci): skip Docker login and publishing in pull request pipelines - #263

Merged
beevelop merged 2 commits into
latestfrom
fix/skip-docker-publish-on-pull-requests
Nov 19, 2026
Merged

beevelop merged 2 commits into
latestfrom
fix/skip-docker-publish-on-pull-requests

Conversation

@beevelop

Copy link
Copy Markdown
Owner

Summary

  • Run Docker builds on pull_request events, skipping Docker Hub login and retaining push: false for PR builds.
  • Restrict branch-push workflows to latest, preserving release-tag and scheduled publishing.
  • Document which pipelines build only and which publish images.

Why

The failing Dependabot pipeline is triggered by a push to its update branch, not by pull_request. Dependabot runs do not receive the Docker Hub credentials, so an unconditional login fails with Username and password required. Adding only a PR-event login guard would not fix those branch-push runs. PR events now provide build-only validation instead.

Validation

  • actionlint passed.
  • Verified eight event scenarios: Dependabot and fork PRs build without login/push; Dependabot and feature-branch pushes do not trigger; latest pushes, release tags, and scheduled runs still publish; unrelated tags do not trigger.

beevelop and others added 2 commits October 28, 2026 10:56
Run pull requests as build-only checks and restrict push-triggered publishing to the latest branch and release tags. Skip Docker Hub login on pull_request events.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep docker/login-action v4.7.0 from latest and retain the pull request login guard.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@beevelop beevelop changed the title Skip Docker login and publishing in pull request pipelines fix(ci): skip Docker login and publishing in pull request pipelines Nov 19, 2026
@beevelop
beevelop merged commit d514d9d into latest Nov 19, 2026
1 check passed
@beevelop
beevelop deleted the fix/skip-docker-publish-on-pull-requests branch November 19, 2026 19:37
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