更多配置項(xiàng):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
可以看到如下信息:
構(gòu)建過程:
可以看到已經(jīng)推送成功了~
--
專欄不定期更新容器實(shí)踐過程中的一些經(jīng)歷,歡迎關(guān)注~