Skip to content

Configure Harbor registry for Docker builds - #7

Merged
surrealwolf merged 8 commits into
mainfrom
harbor-registry-config
Jan 10, 2026
Merged

Configure Harbor registry for Docker builds#7
surrealwolf merged 8 commits into
mainfrom
harbor-registry-config

Conversation

@surrealwolf

Copy link
Copy Markdown
Collaborator

This PR configures the repository to use Harbor registry for Docker image storage and updates GitHub Actions workflows to use self-hosted runners.

Changes

  • Updated docker-compose.yml to pull from Harbor registry
  • Added Harbor build/push/pull commands to Makefile
  • Created GitHub Actions workflows for automated builds with Harbor integration
  • Updated existing docker-build.yml workflow to use Harbor
  • Added Harbor setup documentation

Harbor Registry

  • Images will be stored at: harbor.dataknife.net/library/high-command-ui

GitHub Secrets Required

  • HARBOR_USERNAME
  • HARBOR_PASSWORD

Secrets are already configured in the repository.

Copilot AI review requested due to automatic review settings January 9, 2026 07:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the Docker build infrastructure from local builds to Harbor registry (harbor.dataknife.net) for centralized image storage, and updates GitHub Actions workflows to use self-hosted runners with Harbor integration.

Key changes:

  • Updated docker-compose.yml to pull pre-built images from Harbor instead of building locally
  • Added Harbor-aware Makefile targets for login, push, and pull operations
  • Modified GitHub Actions workflows to build and push to Harbor registry on non-PR events
  • Added comprehensive Harbor setup documentation

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
docker-compose.yml Replaced local build configuration with Harbor registry image references for both UI and API services
Makefile Added Harbor registry variables and new targets (docker-login, docker-push, docker-pull) with environment variable validation
.github/workflows/docker.yml Created new workflow for building and pushing Docker images to Harbor with metadata extraction and registry caching
.github/workflows/docker-build.yml Updated existing workflow to use self-hosted runners, Harbor registry, and added Harbor login/push steps
.github/HARBOR_SETUP.md Added comprehensive documentation for Harbor setup, including GitHub secrets configuration and local development instructions

Comment thread .github/workflows/docker-build.yml Outdated
Comment thread .github/workflows/docker-build.yml Outdated
Comment thread .github/workflows/docker.yml Outdated
Comment thread .github/workflows/docker-build.yml Outdated
Comment thread .github/workflows/docker-build.yml Outdated
Comment thread .github/workflows/docker.yml Outdated
Comment thread .github/workflows/docker.yml Outdated
Comment thread Makefile Outdated
Comment thread .github/HARBOR_SETUP.md Outdated
Copilot AI review requested due to automatic review settings January 10, 2026 21:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.

Comment thread .github/workflows/tests.yml Outdated
Comment thread .github/workflows/tests.yml Outdated
Comment thread .github/workflows/ci.yml
Comment thread Makefile
Comment thread .github/workflows/tests.yml Outdated
Comment thread .github/workflows/tests.yml Outdated
Comment thread .github/workflows/tests.yml Outdated
- GitLab CI: Use --password-stdin for secure Harbor login
- GitLab CI: Build once and tag instead of building twice
- GitLab CI: Replace deprecated 'only' with 'rules'
- Makefile: Use --password-stdin for docker-login (security)
- GitHub Actions: Standardize checkout action to v5
- GitHub Actions: Remove --force flag, use credential helper for git push
- GitHub Actions: Quote cache value ('npm')
- GitHub Actions: Fix multiline command formatting
@surrealwolf
surrealwolf merged commit 1ed183f into main Jan 10, 2026
3 checks passed
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