Skip to content

Apply Copilot review suggestions and fix workflow issues - #15

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

surrealwolf merged 8 commits into
mainfrom
harbor-registry-config

Conversation

@surrealwolf

Copy link
Copy Markdown
Collaborator

This PR applies Copilot review suggestions and fixes workflow issues:

Changes

Security Improvements

  • GitLab CI: Use --password-stdin for secure Harbor login
  • Makefile: Use --password-stdin for docker-login (security)
  • GitHub Actions: Remove error masking in GitLab push job

Best Practices

  • GitLab CI: Build once and tag instead of building twice (performance)
  • GitLab CI: Replace deprecated only with rules
  • GitHub Actions: Standardize checkout action versions
  • GitHub Actions: Use credential helper instead of --force flag
  • GitHub Actions: Fix multiline command formatting
  • GitHub Actions: Fix indentation for Push to GitLab step

Documentation

  • Removed Harbor setup documentation (moved to GitLab CI)

- Remove '|| echo' that was masking push failures
- Remove '|| true' from git fetch to catch fetch errors
- Add git remote remove to avoid conflicts
- Job will now properly fail when push fails
- Change docker-compose to build from local Dockerfile
- Use local image names instead of Harbor registry
- Add commented Harbor image option for production deployments
- Enables local development without Harbor access
@surrealwolf
surrealwolf force-pushed the harbor-registry-config branch from 89ec303 to 05d9e3b Compare January 10, 2026 23:08
@surrealwolf
surrealwolf force-pushed the harbor-registry-config branch from 05d9e3b to 41c3e44 Compare January 10, 2026 23:09
- Add condition to skip push-to-gitlab job on pull_request events
- Only run on push events to main branch: github.event_name == 'push' && github.ref == 'refs/heads/main'
- Add git pull before push to handle GitLab being ahead
- Fixes non-fast-forward errors when PRs tried to push to GitLab
@surrealwolf
surrealwolf merged commit 382bb17 into main Jan 10, 2026
8 checks passed
@surrealwolf
surrealwolf deleted the harbor-registry-config branch January 10, 2026 23:52
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