Every push to the main branch of a GitHub repository must rebuild a container image in Azure. The team has no build servers or self-hosted runners. What should you create?
- A An ACR task with a source code commit trigger (correct answer)
- B A GitHub Actions workflow on a self-hosted runner
- C A scheduled
az acr importjob - D Geo-replication to the region closest to the developers
Shortcut: Rebuild on every git push with no build servers = ACR task with a commit trigger. A self-hosted runner is exactly the infrastructure the team doesn't have, az acr import copies existing images rather than building them, and geo-replication only copies images between regions.
An ACR task with a commit trigger watches the repository and runs the build inside Azure Container Registry on every push, so no build infrastructure is needed. A self-hosted runner is exactly the infrastructure the team doesn't have,
az acr import copies existing images rather than building them, and geo-replication only copies images between regions.