mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
dcc8deb536
Now that most things were migrated out of the old server which hosted the 'libvirt.org' web (now handles only 'https://download.libvirt.org') which no longer even hosts the cgit web interface (any link redirects to gitlab) the whole section now is obsolete. Remove it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
2.9 KiB
2.9 KiB
Repository infrastructure setup
GitLab Configuration
The GitLab organization hosts the master copy of all the libvirt Git repositories.
When creating a new repository the following changes to the defaults are required under the Settings page:
- General
- Naming, topics, avatar
- Project avatar: upload
docs/logos/logo-square-256.png
- Project avatar: upload
- Visibility, project features, permissions
- Packages: disabled
- Wiki: disabled
- Snippets: disabled
- Merge Requests
- Merge method: Fast-forward merge
- Merge options: Enable 'delete source branch' option by default
- Merge checks: Pipelines must succeed
- Merge request approvals
- Any eligible user: Num approvals required == 1
- Naming, topics, avatar
- Integrations
- Pipelines emails
- Recipients:
ci@lists.libvirt.org
- Recipients:
- Pipelines emails
- Repository
- Push rules
- Do not allow users to remove git tags with git push: enabled
- Commit message:
Signed-off-by:
- Branch name:
^(master|v.*-maint)$
- Mirroring repositories
- Git repository URL:
https://libvirtmirror@github.com/libvirt/$repo.git
- Mirror direction: push
- Password: see
/root/libvirt-mirror-github-api-token.txt
onlibvirt.org
- Git repository URL:
- Protected branches
- Branch:
master
andv*-maint
- Allowed to merge: Developers + Maintainers
- Allowed to push: None (or Developers + Maintainers if MRs not used)
- Require approval from code owners: disabled
- Branch:
- Protected tags
- Tag:
v*
and any project specific tag formats likeLIBVIRT_*
orCVE*
- Allowed to create: Developers + Maintainers
- Tag:
- Push rules
- CI/CD
- Runners
- Shared runners: Enable shared runners
- Variables
- Key:
CIRRUS_GITHUB_REPO
- Value:
libvirt/$repo
- Protect variable: enabled
- Mask variable: disabled
- Value:
- Key:
CIRRUS_API_TOKEN
- No need to set this at the project level: it's already set for the libvirt organization and will be inherited from there.
- Key:
- Runners
GitHub configuration
The GitHub organization hosts read-only mirrors of all the libvirt Git repositories.
When creating a new repository the following changes to the defaults are required under the Settings page:
- Options
- Features
- Wikis: disabled
- Sponsorships: disabled
- Projects: disabled
- Manage access
- Add the
@committers
team with the role "Write", which grants thelibvirtmirror
user access to sync from GitLab.
- Add the
- Integrations
- Check for Repo Lockdown (should be set automatically for all projects)
- Features
In the master git repository create a file .github/lockdown.yml to restrict use of issue tracker and pull requests.