Your team keeps the source code for an inference API in a private GitHub repository. The Dockerfile for the inference-api image starts with FROM myregistry.azurecr.io/pytorch-base:2.4. The pytorch-base image and the inference-api image are both stored in the same Azure Container Registry, myregistry.
The inference-api image must be rebuilt in Azure without anyone running a command:
- each time code is committed to the
mainbranch - each time the
pytorch-baseimage is updated in the registry
Which two ACR Tasks capabilities should you use to meet the rebuild requirements? Each correct answer presents part of the solution. Select two.
Two separate automatic triggers are needed. A source code trigger uses a webhook in the repository to start a build when code is committed. A base image trigger rebuilds images whose Dockerfile FROM statement names an updated base image. For a private base image, this works when the base image and the application image are in the same registry, as they are here. Scheduled triggers run on a timetable, and quick tasks and az acr run are started by hand.