My knowledge of Azure is pretty limited - this is the first project where I've worked with it.
We are deploying Azure webapps in docker containers via an Azure pipeline configured with the classic interface. The pipeline has one agent job that looks like this when I click the "View YAML" button:
ERROR Rendering Code Block
The pipeline isn't really "mine" so I don't want to make any crazy changes but I do have access to edit it and can discuss with the third party admin to make changes if need be.
I need to run a post deployment script to clear caches and such in a container (the app will likely run multiple web containers, it doesn't matter which one the script runs in) after the pipeline finishes.
Unfortunately I just cannot figure out how to do that. Options I've considered:
az webapp ssh
or az webapp create-remote-connection
) so I'm not totally sure whether this would work at all and I suspect it would take many hours of debugging and waiting for containers to deploy to even find out.The pipeline that you provided is more of a "build" pipeline - it builds a docker image and publishes it to container registry. How is it then used & deployed? Is it a webapp that automatically picks up published image? something else?