We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Article Reference Link
Release Article: https://about.gitlab.com/2017/07/22/gitlab-9-4-released/
全新的导览界面
在这之前,做 CI/CD 很容易碰上跨项目重复利用的环境变量
往往也只能在第一次配的时候,copy and paste
通过这一特性,可以最终解决这个问题啦,直接配置一次,全群组里的项目通用
一个使用场景,就是在 8.14 发布的 DOCKER_AUTH_CONFIG 变量配置(介绍在这里)
DOCKER_AUTH_CONFIG
只要配置的群组级别的 DOCKER_AUTH_CONFIG ,就可以在全部项目直接对私有的仓库 docker pull/push 了
docker pull/push
有些变量想要在周期 pipeline 中特别配置的,就可以通过这个特性实现啦
对于 job 缓存,基本行为方式都是在开始的时候拉取下来,在结束的时候提交上去
但是对于有些 job,是根本用不上提交缓存,或者是拉取缓存
于是通过这两个 .gitlab-ci.yml 配置项,就可以减少 job 的运行时间,从而加速 pipeline 的执行
.gitlab-ci.yml
policy: pull
policy: push
更多缓存策略说明,在这里
使用 docker 作为 runner 的时候,不仅可以使用指定的镜像配置 image,还可以 services
image: "registry.example.com/my/image:latest" services: - postgresql:9.4 - redis:latest
但是这还远远不够,有时有还会有一些不方便的地方
这一版本中发布的特性,就可以解决这些问题
image
name
entrypoint
services
alias
command
image: name: ruby:2.2 entrypoint: ["/bin/bash"] services: - name: my-postgres:9.4 alias: db-postgres-old entrypoint: ["/usr/local/bin/db-postgres"] command: ["start"] - name: my-postgres:9.5 alias: db-postgres-new entrypoint: ["/usr/local/bin/db-postgres"] command: ["start"]
更多 Docker 参数说明,在这里
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Article Reference Link
Release Article: https://about.gitlab.com/2017/07/22/gitlab-9-4-released/
New Navigation
全新的导览界面
Group-level Secret Variables
在这之前,做 CI/CD 很容易碰上跨项目重复利用的环境变量
往往也只能在第一次配的时候,copy and paste
通过这一特性,可以最终解决这个问题啦,直接配置一次,全群组里的项目通用
一个使用场景,就是在 8.14 发布的
DOCKER_AUTH_CONFIG
变量配置(介绍在这里)只要配置的群组级别的
DOCKER_AUTH_CONFIG
,就可以在全部项目直接对私有的仓库docker pull/push
了Variables in Pipeline Schedules
有些变量想要在周期 pipeline 中特别配置的,就可以通过这个特性实现啦
New Cache Policy for CI/CD Configuration
对于 job 缓存,基本行为方式都是在开始的时候拉取下来,在结束的时候提交上去
但是对于有些 job,是根本用不上提交缓存,或者是拉取缓存
于是通过这两个
.gitlab-ci.yml
配置项,就可以减少 job 的运行时间,从而加速 pipeline 的执行policy: pull
: 只拉取缓存,不提交缓存policy: push
: 只提交缓存,不拉取缓存更多缓存策略说明,在这里
Extended Docker Configuration for CI/CD
使用 docker 作为 runner 的时候,不仅可以使用指定的镜像配置 image,还可以 services
但是这还远远不够,有时有还会有一些不方便的地方
这一版本中发布的特性,就可以解决这些问题
image
:name
: 镜像地址entrypoint
: 就是 docker 的 entrypoint 参数services
:name
: 镜像地址alias
: service 的别名,最重要的用处,就是当你不想使用默认的转义地址的时候,可以在这里制定entrypoint
: 就是 docker 的 entrypoint 参数command
: 就是 docker 的 command 参数更多 Docker 参数说明,在这里
The End
The text was updated successfully, but these errors were encountered: