Azure Container Registry CI/CD with Github Actions not working

64 Views Asked by At

I'm trying to implement a CI/CD workflow in an Azure function with github actions.

The problem I'm having is that even tough, github actions indicates the workflow completed successfully, and even the Azure Deployment Slots indicate an image was pulled, the actual behaviour of the function is not changing.

The logs I added are not showing up.

The github action executed successfully: enter image description here

The Azure workflow says the new image was pulled: enter image description here

But the log stream shows the same old logs: enter image description here

Even tough my updated code has a new text in the log: enter image description here

I don't know what I did wrong. Can someone help me?

The problem I'm having is that even tough, github actions indicates the workflow completed successfully, and even the Azure Deployment Slots indicate an image was pulled, the actual behaviour of the function is not changing.

I expected the behaviour of the app to change after making the updates.

1

There are 1 best solutions below

1
Gera S. On

I've found the problem.

The github action step that pushes to the ACR, succedded because I was using valid credentials (ClientID and ClientSecret), some doc I read gave me the impression this were the ones meant to be used. But the correct credentiales were meant to be found on Azure Container Registry > Settings > Access Keys.

Upon changing the credentials, the CI began working.