Add GitLab pipeline, gitlab stack docs and root include

This commit is contained in:
rezayaghobi-dev
2026-10-04 21:38:08 +03:30
parent aa6cd39b8c
commit 8bca986fe8
4 changed files with 175 additions and 0 deletions

16
gitlab/README.md Normal file
View File

@@ -0,0 +1,16 @@
# GitLab stack (self-hosted)
GitLab CE and its container registry behind Traefik (TLS), plus a Docker-executor runner on the same network (`web_net`).
The pipeline for this repo is in `.gitlab-ci.yml` in this folder (included from the repo root).
Register a runner (create it in Admin > CI/CD > Runners first, then use its token):
docker exec gitlab-runner gitlab-runner register --non-interactive \
--url http://gitlab:80 --token <RUNNER_TOKEN> \
--executor docker --docker-image docker:cli \
--docker-network-mode web_net \
--docker-volumes /var/run/docker.sock:/var/run/docker.sock \
--clone-url http://gitlab:80
Where registry.gitlab.com is unreachable, add this to the runner's [runners.docker] section in config.toml:
`helper_image = "gitlab/gitlab-runner-helper:x86_64-latest"`