Hello
I am trying to Deploy image from azure container registry to a web app.
I have configured a Feed successfully and I have choose step called Docker run, It can read the docker image name but fails to load the version number, next I’ve tried the web app deploy and same it fails retrieve the pakcgae/docker image version number, what i am doing wrong ?
Regarding Octopus failing to load the image versions, this could be due to them not being SemVer. Octopus requires that versions are in SemVer form. Could this be the problem?
Also, if I understand your question correctly, you are trying to deploy a container image to an Azure Web App? If so, you will not be able to use the Docker Run step.
You will need to follow these steps:
Add your container registry as a package feed in Octopus
Add Run an Azure Powershell Script to your deployment process.
Set the Execution Location of your script to Run on a Worker on behalf of each deployment target, and then in the On Behalf Of field select the role you used on the deployment target.
Note that aspnetapp should be replaced with whatever you named your container image package reference. Information on the variables available to your script can be found here.
I hope that helps. We’re aware this scenario isn’t a simple as it should be. Please reach out if we can assist further
We’re OK retrieving the package and the image tag the only thing is the warning:
WARNING: No credential was provided to access Azure Container Registry. Trying to look up…
WARNING: Retrieving credentials failed with an exception:'No resource or more than one were found with name ‘somename’.