#+title: GitLab #+setupfile: ../org-templates/page.org ** Setup GitLab runner with Podman 1. Install [[https://docs.gitlab.com/16.9/runner/install/linux-manually.html][GitLab Runner]] 2. Create a new runner from the GitLab UI. 3. Use the authentication token from the GitLab UI to register a new runner on the machine hosting the runner. Select the Docker executor. #+begin_src shell sudo systemctl enable --now gitlab-runner.service sudo gitlab-runner register --url https://git.hyperreal.coffee --token #+end_src 4. Add the following lines to ~/etc/gitlab-runner/config.toml~ for Podman: #+begin_src toml [[runners]] environment = ["FF_NETWORK_PER_BUILD=1"] [runners.docker] host = "unix://run/podman/podman.sock" tls_verify = false image = "git.hyperreal.coffee:5050/fedora-atomic/containers/fedora:latest" privileged = true volumes = ["/build-repo", "/cache", "/source-repo"] #+end_src 5. Restart the gitlab-runner: #+begin_src shell sudo gitlab-runner restart #+end_src We should now be ready to use the Podman runner.