Skip to content

Use DOCKER_AUTH_CONFIG group variable for Harbor authentication - #18

Merged
surrealwolf merged 4 commits into
mainfrom
fix/gitlab-push-workflow
Jan 11, 2026
Merged

surrealwolf merged 4 commits into
mainfrom
fix/gitlab-push-workflow

Conversation

@surrealwolf

Copy link
Copy Markdown
Collaborator

Changes

  • Remove before_script auth generation code from .gitlab-ci.yml
  • Use DOCKER_AUTH_CONFIG GitLab group variable for Harbor authentication
  • Matches the working pattern from proxmox-ve-mcp

This simplifies the CI configuration by relying on the GitLab group-level DOCKER_AUTH_CONFIG variable instead of generating the Docker auth config in the CI script.

Benefits

  • Cleaner CI configuration
  • Centralized credential management via GitLab group variables
  • Consistent with other repositories
  • Follows GitLab best practices for Docker authentication

- Remove git pull step that was causing merge conflicts
- Add --force flag to git push to handle branch divergence
- This allows GitHub to override GitLab branch when they diverge
- Add separate build stage with language-specific images (Go/Python/Node)
- Fix docker login to use --username flag (per GitLab docs)
- Build artifacts are passed to docker build stage via dependencies
- Add DOCKER_TLS_CERTDIR for Docker-in-Docker support
- Run 'make build' before docker build to prepare app assets
- Remove before_script auth generation code
- Rely on DOCKER_AUTH_CONFIG GitLab group variable
- Matches working pattern from proxmox-ve-mcp
The release: keyword requires glab CLI which is provided by
registry.gitlab.com/gitlab-org/cli:latest image
@surrealwolf
surrealwolf merged commit 37393c7 into main Jan 11, 2026
8 checks passed
@surrealwolf
surrealwolf deleted the fix/gitlab-push-workflow branch January 11, 2026 09:45
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