代码之家  ›  专栏  ›  技术社区  ›  nzmattman

使用Gitlab Runner的Google云计算引擎

  •  0
  • nzmattman  · 技术社区  · 5 年前

    我已经准备好了一切,包括在给定分支合并时触发的GitLab管道。

    我现在的问题是,我希望在启动新实例时运行它。 这允许新实例始终是运行的最新代码。

    这是所有的工作很好,但是,通过一部分我得到以下错误

    Session terminated, killing shell... ...killed.
    ERROR: Job failed: aborted: terminated
    

    计算引擎的启动脚本如下

    sudo gitlab-runner register --non-interactive -u https://gitlab.com -r <token> --executor shell
    
    curl --request POST --form token=<token> --form ref=feature/devops-auto-deploy https://gitlab.com/api/v4/projects/<project_id>/trigger/pipeline
    

    这会让跑步者
    然后运行触发管道

    不知道这里发生了什么。

    谢谢大家

    0 回复  |  直到 5 年前