image.png

    https://docs.gitlab.com/runner/install/

    image.png

    1、下载二进制包

    1. sudo curl --output /usr/local/bin/gitlab-runner "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64"

    2、设置权限

    1. sudo chmod +x /usr/local/bin/gitlab-runner

    2.1、注册runner https://docs.gitlab.com/runner/register/index.html
    1、启动gitlab-runner的容器

    1. docker run --rm -it -v /srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register

    2.2、配置runner
    image.png