我设置了一个简单的 go 项目,我希望构建一个简单的 docker 映像并将其部署到我的私有注册表中。这是我的 .drone.yml:
pipeline:
build:
image: golang
commands:
- go build
docker:
image: plugins/docker
username: xxxxxxxxxxx
password: yyyyyyyyyyy
repo: docker.mycompany.it:5000/drone/test
tags: latest
debug: true
但是插件会尝试连接到 docker 注册表并对其进行身份验证。