代码之家  ›  专栏  ›  技术社区  ›  Andrew Graham-Yooll

可以从Gitlab CI执行Docker compose pull吗?

  •  0
  • Andrew Graham-Yooll  · 技术社区  · 7 年前

    docker-compose.yml 当我的CI Runner正在执行构建时,我想要拉取的文件。

    Pulling web (registry.gitlab.com/xxxxx/xxxxx/crm:latest)...
    Pulling repository registry.gitlab.com/xxxxx/xxxxx/crm
    Error: image xxxxx/xxxxx/crm:latest not found
    
    2 回复  |  直到 7 年前
        1
  •  1
  •   Ilya Kuchaev    7 年前

    你必须先登录注册表

    - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY

        2
  •  1
  •   Peter Grainger    7 年前

    要在@llya kuchaev的基础上继续发展,请回答相关的gitlab文档: https://about.gitlab.com/2016/05/23/gitlab-container-registry/

    https://docs.gitlab.com/ee/ci/variables/ 对于v9中所做的所有更改(有负载)