Hi Tyler Suard,
When you configure CI/CD using the Azure Portal with a custom container from Azure Container Registry (ACR), it automatically generates a GitHub Actions workflow file. However, the generated YAML often includes an incorrect tag format, this causes image pull failures (404 Not Found or Unauthorized) because the image gets pushed to a repository name that doesn't match what your App Service is configured to pull from.
ragchatcr.azurecr.io/USERNAME/ch5-image
is not the correct target – theUSERNAME
part shouldn't be there.
Go to your GitHub repository => .github/workflows/your-workflow.yaml
, find the docker build
or docker/build-push-action
step. Update the tags
field to remove the ${{ secrets.AZUREAPPSERVICE_CONTAINERUSERNAME }}
segment.
tags: ragchatcr.azurecr.io/ch5-image:${{ github.sha }}
Commit the change and re-run your GitHub Actions workflow.
Once that’s done, your container should be pushed to the expected ACR path, and your Web App will be able to pull and run it successfully.
Configure CI/CD with GitHub Actions for App Service using container registry
GitHub Action for Docker build and push (docker/build-push-action)
Azure Web App for Containers - Configure container settings
Hope this helps, if you have any further concerns or queries, please feel free to reach out to us.