DEV Community

Discussion on: Container image promotion across environments - YAML

Collapse
 
dsartain18 profile image
Don Sartain

Thanks so much for writing this! I searched for a couple days trying to find a way to stash the docker image in the artifact so I could use it in the deploy phase after my ARM templates run.

I'm running into a problem though. The save command doesn't work because it says the reference doesn't exist. I know it exists because I can build and push to the Azure Container Registry just fine, but somehow the argument you use doesn't work for me.

Also, I added another Docker step to list the docker images, and that comes back empty.

Any suggestions?

Collapse
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

That's interesting... Are you trying to save/list the image in a different stage? or on another job or another agent job?

Collapse
 
dsartain18 profile image
Don Sartain

Well, turns out I made a couple of mistakes. I had the command to list docker images as "Docker Images ls" instead of "Docker Images". I'm not sure why. Then because I set the container registry value on the build part (I looked at a couple of different examples sorting this out) it attached the ACR URL to the front of the repository name. I sorted it all out in the end. Usually it was just a matter of asking Google the right question, and in the right tone of voice, apparently. Thanks again for putting this together!

Thread Thread
 
n3wt0n profile image
Davide 'CoderDave' Benvegnù

Glad you've been able to figure this out.

Always happy to help :)

BTW, not sure you've seen my YouTube channel, where I cover topics on DevOps, Azure DevOps and GitHub... Maybe you can take a look at it 😇youtube.com/CoderDave