使用gitlab pipeline自动构建,需要为项目配置runner, 安装方法为:

构建一个docker:buildx镜像做测试

.gitlab-ci.yml:

 

Dockerfile:

 

运行时提示Got permission denied while trying to connect to the Docker daemon socket,解决方法:

在runner服务器上修改gitlab-runner用户加入docker组:

 

Categories: 未分类

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *