美文网首页
快速搭建CI——快速安装gitlab-runner

快速搭建CI——快速安装gitlab-runner

作者: Chzzr | 来源:发表于2021-06-30 23:45 被阅读0次

     1.添加yum源

    curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash

    2.安装runner

      yum install gitlab-ci-multi-runner

    3.向GitLab-CI注册runner

      gitlab-ci-multi-runner register

    配置gitlab 链接和 token

    图1

    b.Enter your GitLab instance URL:

    Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )

    你的gitlab地址

    c.Enter the token you obtained to register the Runner:

    Please enter the gitlab-ci token for this runner

    你的token

    d.Enter a description for the Runner, you can change this later in GitLab's UI:

    Please enter the gitlab-ci description for this runner

    [hostame] my-runner

    e.Enter the tags associated with the Runner, you can change this later in GitLab's UI:

    Please enter the gitlab-ci tags for this runner (comma separated):

    tag 可以不写

    f.Enter the Runner executor:

    Please enter the executor: ssh, docker+machine, docker-ssh+machine, kubernetes, docker, parallels, virtualbox, docker-ssh, shell:

    shell

    原文链接:https://blog.csdn.net/qq_38165374/article/details/106986608

    项目配置目录配置yml文件

    配置好后gitlab-runner会自动拉取代码并根据yml文件执行命令

    忽略上传的配置文件需要额外部署

    相关文章

      网友评论

          本文标题:快速搭建CI——快速安装gitlab-runner

          本文链接:https://www.haomeiwen.com/subject/bqvdultx.html