[英]How can I update all images in azure container registry when base image is updated
I have a bunch of repositories in an Azure container registry.我在 Azure 容器注册表中有一堆存储库。 Each repository can have several versions of an image, tagged like this, imagename:v_1_0 or imagename:v_1_2.
每个存储库可以有多个版本的图像,标记如下,imagename:v_1_0 或 imagename:v_1_2。 Almost all of these images uses the base image mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim.
几乎所有这些映像都使用基础映像 mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim。
My question is, how do I create an acr task that updates all of my images when that base image is updated by microsoft?我的问题是,当微软更新基本图像时,如何创建一个更新我所有图像的 acr 任务? I have seen tutorials on creating an acr task but almost all of them assume that the source code is pushed from github and that I am only updating a single image.
我看过有关创建 acr 任务的教程,但几乎所有教程都假定源代码是从 github 推送的,并且我只更新单个图像。 I would like to avoid creating a task for n number of images in each repository but I suppose I could create a job that automatically creates a task whenever I publish from visual studio.
我想避免在每个存储库中为 n 个图像创建任务,但我想我可以创建一个作业,每当我从 Visual Studio 发布时自动创建一个任务。
Has anyone else solved this problem?有没有其他人解决过这个问题?
So, if you are building your images via ACR tasks they do that automatically for the following base images:因此,如果您通过 ACR 任务构建图像,它们会自动为以下基本图像执行此操作:
https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tasks-base-images#base-image-notifications https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tasks-base-images#base-image-notifications
if you are building them outside of ACR and pushing to ACR - you probably need to handle that in the same place you are building them.如果您在 ACR 之外构建它们并推送到 ACR - 您可能需要在构建它们的同一个地方处理它。 ACR cant do that for images its not building (seems fair).
对于未构建的图像,ACR 无法做到这一点(似乎很公平)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.