DEV Community

Discussion on: Container image promotion across environments - YAML

Collapse
 
ayang920 profile image
AYang

Thank you for your post. It works well, but I have a question about the last step 'Push Image to ACR' (containerRegistry: MyProjectACRdev). Can I use modify this step by using the same push task to deploy the Docker image to an on-prem cluster? If not, what task can I use to achieve that?

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

When you work with container images, you still need to push them to a container registry anyway before you can “deploy” them to a cluster. So you can change registry on that command (for example push it to docker hub or another service rather than ACR) but you still have to do it before you can actually have it on the clister