-
-
Notifications
You must be signed in to change notification settings - Fork 644
Docs: Docker 部署镜像添加 latest tag #3787
New issue
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
base: master
Are you sure you want to change the base?
Conversation
1.使用 'if' 条件,确保此步骤仅在推送到 'main' 分支时运行,避免了 'enable' 属性的错误。2.确保只有在标签生成步骤成功运行时(即在 main 分支 push 时),才执行构建和推送。 3.docker image推送时增加latest标签
|
🚀 Deployed to https://deploy-preview-3787--nonebot2.netlify.app |
|
action 的触发条件写的就是当 push tag 的时候才会执行啊,你这个 if 有什么意义? |
|
你的 tag 是打在了非 master branch 上?正确用法应该是 另外我觉得你这个属于自定义行为了,不应该放到文档里。 |
|
我思考的是有latest标签,就不需要每次去查看hash值了。不过确实可以自己修改,那就close? |
|
action会把你 push tag 的版本打到镜像上,也不需要你看 hash 啊 |
|
是拉取的时候,因为我实践中机子没公网ip,实现不了action的自动拉取构建,每次需要去dockerhub查看 |
|
那你直接加上这个 latest tag 就可以了 |
|
OK,那我等会把两个判断删了 |
Removed conditional checks for generating tags and building/publishing.
|
你有试过这么写对吗 🤔 不需要 enable 参数了吗? |
|
我这会试试 |
|
你这测试的是 push branch 不是 tag?另外文档同步更新一下其他几个版本的文件 |
|
测试的是 push branch,同步更新我抽空搞 |
|
@AhsokaTano26 测试过 push tag 了吗?更新还没有同步。 |
|
十分抱歉,最近考试周,可能得等到1月5日考完才能继续测试 |



1.使用 'if' 条件,确保此步骤仅在推送到 'main' 分支时运行,避免了 'enable' 属性的错误。
2.确保只有在标签生成步骤成功运行时(即在 main 分支 push 时),才执行构建和推送。
3.docker image推送时增加latest标签