更多配置项:Docker | Plugins | Drone
配置push信息:
# 获取repo列表drone repo ls# suyi/alpine-drone# 添加docker hub信息drone secret add --image=plugins/docker suyi/alpine-drone DOCKER_USERNAME thonatosdrone secret add --image=plugins/docker suyi/alpine-drone DOCKER_PASSWORD {password}# 签名drone sign suyi/alpine-drone
提交代码到git:
git initgit add .git ct -m "init"git remote add origin ssh://git@{ip}:{ssh_port}/suyi/alpine-drone.gitgit push -u origin master
可以看到如下信息:
构建过程:
可以看到已经推送成功了~
--
专栏不定期更新容器实践过程中的一些经历,欢迎关注~