您现在的位置是:热点 >>正文
云计算核心技术Docker教程:将标记的版本推送到 Docker Hub
热点20976676人已围观
简介...
之前,我们学习了如何为 Docker 项目设置 GitHub Actions 工作流,如何通过设置具有构建缓存的构建器来优化工作流。现在让我们看看如何进云计一步改进它。我们可以通过添加标记版本对所有提交到 master 的行为不同的功能来做到这一点。这意味着,只推送特定版本,而不是每次提交更新 Docker Hub算核 上的最新版本。
您可以考虑使用这种方法将提交转到本地注册表,然后在夜间测试中使用。通过这样做,您可以始终测试最新版本,同时保留标记版本以发布到 Doc心技ker Hub。
这包括两个步骤:
修改 GitHub 工作流以仅将带有特定标签的提交推送到 Docker Hub
设置 GitHub 操作文件以将最新提交作为图像存储在术D GitHub 注册表中
首先,让我们修改现有的 GitHub 工作流程,仅在有特定标签时才推送到 Hub。例如:
on:
push:
&ocnbsp; tags:
&kenbsp; - "v*.*.*"
这确保了主 CI 仅在我们使用V.n.n.n.Let's test this标记我们的提交r教时才会触发。例如,运行以下命令:
git tag -a v1.0.2
git push origin v1.0.2
现在,转到 GitHub 并检查您的操作
现在,让我们设程:置第二个 GitHub 操作文件,将我们最新的提交作为图像存储在 GitHub 注册表中。您可能希望这样做:
1.运行您的夜间测试或重复测试,或
2.与同将标事分享正在进行的工作镜像。
让我们克隆我们之前的 GitHub 操作,并为所有推送添加回我们之前的逻辑。这意味着我们有两个工作流文件,我们之前的一个和我们现在记的将处理的新的。接下来,将您的 Docker Hub 登录名更改为 GitHub 容器注册表登录名:
请记住更改图像的标记方式。以下示例将“最新”作为唯一标记。但版本是,如果您愿意,您可以为此添加任何逻辑:
tags: ghcr.io/${{ github.repository_owner }}/sim推送plewhale:latest
现在,我们将有两种不同的流程:一种用于我们对 master 的更改,另一种用于我们的拉取请求。接下来,我们需要修改我到 们之前的内容,以确保我们将 PR 推送到 GitHub 注册表而不是 Docker Hub。
Tags:
相关文章
标签: 优必选 U1系列 周剑 人形机器人
热点云梦级7月1日云梦级消息,据海报新闻报道,在优必选2026年度全球发布会上,优必选CEO周剑谈及未来机器人与人类的工作格局时表示:好好珍惜我们作为牛马、作为劳动力工作的最后光阴吧,这也就是未来5年10...
【热点】
阅读更多AWS 发布 Agentic AI 应用 Quick Suite:一站式连接1000+ 企业应用,彻底变革工作流程
热点亚马逊云科技(AWS)近日宣布推出全新的 Agentic AI 应用 Amazon Quick Suite ,旨在帮助员工全面提升工作效率,彻底转变他们获取信息洞察的方式、开展深度研究、自动化任务、进...
【热点】
阅读更多Parler撤回对亚马逊的反垄断诉讼:已无关紧要
热点新浪科技讯 北京时间3月3日晚间消息,据报道,社交媒体平台Parler已经撤回了对亚马逊的反垄断诉讼,从而结束了两个月来试图以法律手段迫使亚马逊恢复托管服务的努力。 当地时间周二深夜,Parler在向...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.openspaceinstitute.org/search?q=歌外推【tg:seogoogle987】,xhe
- https://www.scivee.tv/?s=歌外推【tg:seogoogle987】,uy0
- https://www.miamiopenmri.com/?action=CHECK&s=歌外推【tg:seogoogle987】,vBH
- https://www.maafushidive.com?collections?vendors?q=歌外推【tg:seogoogle987】,bj6
- https://www.wuv.edu/?s=歌外推【tg:seogoogle987】,DwE
- https://www.lauben.com/de/?s=歌外推【tg:seogoogle987】,hCi
- https://www.tycoonstory.com/?s=歌外推【tg:seogoogle987】,i0M
- https://www.teacherspayteachers.com/Browse/Search:歌外推【tg:seogoogle987】,feT
- https://www.roberthalf.com/us/en/jobs/all/歌外推【tg:seogoogle987】R8C
- https://m.shoppinghow.kakao.com/m/search/q/歌外推【tg:seogoogle987】HGg
- https://www.zisha.com/shop/list.shtml?wap_keyword=歌外推【tg:seogoogle987】,32u
- https://www.mygrandma.com/Items.aspx?search=歌外推【tg:seogoogle987】,bIf
- https://www.kingston.gov.uk/site-search/results/?q=歌外推【tg:seogoogle987】,YEc
- https://www.kelsa.co.uk/catalogsearch/result/index/?T=1686132119291&q=歌外推【tg:seogoogle987】,kEN
- https://www.wellbees.com/index.php/catalogsearch/result/index/?q=歌外推【tg:seogoogle987】,szg
- https://www.zalora.sg/catalog/?cat=112&q=歌外推【tg:seogoogle987】,8k4
- https://www.kissthekangaroo.com.au/index.php?route=product/search&tag=歌外推【tg:seogoogle987】,CF4
- https://www.lyrics.com/lyrics/歌外推【tg:seogoogle987】,WB8
- https://www.shacknews.com/editorial-search?q=歌外推【tg:seogoogle987】,lCb
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=歌外推【tg:seogoogle987】,sj1
- https://www.yidian51.com/taobao/歌外推【tg:seogoogle987】,RnM
- https://www.pixiv.net/tags/歌外推【tg:seogoogle987】,v7l
- https://www.remit.co.jp/zh/?s=歌外推【tg:seogoogle987】,hGA
- https://www.umc.edu/search.aspx?ID=I4gnDKRS991MFcIDDzoYze4aWSAszAm7&q=歌外推【tg:seogoogle987】,ZME
- https://www.libros.unam.mx/catalogsearch/result/?cat=37&dir=asc&format=20&lit=20&manufacturer=3230&mode=list&order=year_edition&q=歌外推【tg:seogoogle987】,WxC
- https://xehay.vn/tim-kiem/=歌外推【tg:seogoogle987】,JBQ
- https://www.theaerogroup.net/?cat=28&s=歌外推【tg:seogoogle987】,Kem
- https://yscc1986.net/search/歌外推【tg:seogoogle987】IIp
- https://www.silentiumpc.com/en/search/歌外推【tg:seogoogle987】,xTW
- https://www.wheels24.gr/?action=CHECK&s=歌外推【tg:seogoogle987】,s2n
- https://www.ons.gov.uk/search?q=歌外推【tg:seogoogle987】,kmc
- https://www.navymwr.org/search/?query=歌外推【tg:seogoogle987】,uAO
- https://www.tmtpost.com/search?q=歌外推【tg:seogoogle987】,0TU
- https://www.lee.com/search?q=歌外推【tg:seogoogle987】,z9J
- https://hsmoa.com/search?query=歌外推【tg:seogoogle987】TPh
- https://www.selfsufficientish.com/main/?s=歌外推【tg:seogoogle987】,58j
- https://www.rotherham.gov.uk/site-search/results/?q=歌外推【tg:seogoogle987】,3Nd
- https://www.ushmm.org/search/results/?ID=8s0587Oi8UTv74zPPM4fuhwjNpe2hsEE&q=歌外推【tg:seogoogle987】,INF
- https://www.teamlab.art/ko/?submit=歌外推【tg:seogoogle987】,Qsh
- https://www.temu.com/search_result.html?search_key=歌外推【tg:seogoogle987】y8Q
- https://www.oikos-tecnics.com/?s=歌外推【tg:seogoogle987】,KTs
- https://www.symatoys.com/search.html?ID=UyMD6aO58bPrJvQAB1I0N69KzJBZeNPC&keyword=歌外推【tg:seogoogle987】,EDj
- https://store.line.me/search/sticker/ja?q=歌外推【tg:seogoogle987】mdd
- https://www.seagrant.wisc.edu/?page=63&s=歌外推【tg:seogoogle987】,BpK
- https://www.lneg.pt/en/?s=歌外推【tg:seogoogle987】,hRq
- https://www.vet-direct.com/search?cat=72&term=歌外推【tg:seogoogle987】,wUq
- https://www.parl.ca/legisinfo/fr/projets-de-loi?parlsession=all&view=list&keywords=歌外推【tg:seogoogle987】,9qI
- https://www.soccerbible.com/search?q=歌外推【tg:seogoogle987】,aQd
- https://www.unclefossil.com/search/歌外推【tg:seogoogle987】gad_source=1&gclid=Cj0KCQjw_-GxBhC1ARIsADGgDjsNKplUXa2F6YGlHBK2sHDQ88cgsJBb05DyO99TV9jNq_cT0kGMqyQaAgHQEALw_wcB
- https://www.paspaley.com/catalogsearch/result/?action=QUERY&q=歌外推【tg:seogoogle987】,rNq