gitlab-runner 的 executors 之 docker
gitlab-runner 的 executors 之 docker GitLab Runner 实现了许多执行程序,可用于在不同的场景中运行构建。所有执行程序分别为: SSH Shell Parallels VirtualBox Docker Docker Machine (auto-scaling) Kubernetes Custom 本文主要介绍 docker 执行程序: 两种不同的使用方式 踩过的坑 一些例子与经验 这是一个很好地选择。因为它可以提供一个干净的构建环境,项目所有依赖项都可以放到 docker 镜像中。同时,它还可以轻松创建具有依赖服务的构建环境,比如 MySQL。参考 https://docs.gitlab.com/runner/executors/README.html GitLab CI/CD 工作原理: https://docs.gitlab.com/ee/ci/introduction/index.html#how-gitlab-cicd-works 在 GitLab CI/CD 中构建 Docker 镜像: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html 两种使用方式 docker-in-docker 文档: https://docs.gitlab.com/ee/ci