Skip to content

GitLab CI-CD with GitLab-Runner

Run GitLab-Runner in container for GitLab CI/CD.

1. Run GitLab Runner with Podman

podman run --detach \
    --privileged \
    --name gitlab-runner \
    --network host \
    -v ${PWD}/config:/etc/gitlab-runner:z \
    docker.io/gitlab/gitlab-runner:latest

2. Register Runner in container

podman exec -it gitlab-runner gitlab-runner register

Config the runner with instructions.

REF

[1]. https://docs.gitlab.com/runner/

[2]. https://zhuanlan.zhihu.com/p/385110311