Skip to content

Push backend/frontend images to Harbor instead of GHCR - #249

Closed
HuntC19 wants to merge 1 commit into
mainfrom
harbor-migration
Closed

HuntC19 wants to merge 1 commit into
mainfrom
harbor-migration

Conversation

@HuntC19

@HuntC19 HuntC19 commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Part of oss-slu/oss_infra_ops#95.

Replaces the ghcr.io login/push in both backend.yml and frontend.yml with registry.oss-slu.online (the self-hosted Harbor instance from #92). Drops GHCR entirely rather than dual-pushing, to avoid continuing to depend on a GitHub-hosted registry for the pull side - worth knowing: the in-cluster ghcr-secret credential had already silently expired, leaving frontend and the data-pipeline CronJob stuck in ImagePullBackOff in the cluster for 3+ weeks before this PR. This migration fixes that as a side effect, once merged and deployed.

Needs two repo secrets added before this can run (Settings → Secrets and variables → Actions):

  • HARBOR_USERNAME: robot$oss-dev-analytics+push
  • HARBOR_PASSWORD: (Harbor robot secret - see the infra PR/chat, not pasted here)

Also adds workflow_dispatch to both workflows so a build can be triggered on demand without needing a real code change, and writes the pushed image digest to the job summary (needed for the next step: pinning k8s-manifests/oss-dev-analytics to an immutable digest).

🤖 Generated with Claude Code

…#95)

Drops GHCR entirely rather than dual-pushing, per explicit preference
to avoid any GitHub-hosted-registry dependency for the pull side -
the existing in-cluster ghcr-secret credential had already silently
expired, leaving frontend and the data-pipeline CronJob in
ImagePullBackOff for over 3 weeks. Harbor's push robot
(robot$oss-dev-analytics+push) replaces the GITHUB_TOKEN-based ghcr.io
login. Also captures the pushed digest in the job summary and adds
workflow_dispatch so a build can be triggered on demand.

Requires HARBOR_USERNAME/HARBOR_PASSWORD repo secrets (added
separately, not committed here).

Co-Authored-By: HuntC19 <137342864+HuntC19@users.noreply.github.com>
Co-Authored-By: mikeybud08 <mikeybud08@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@HuntC19
HuntC19 requested a review from jdetok as a code owner October 29, 2026 22:14
@HuntC19 HuntC19 closed this Oct 29, 2026
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