-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using imageToDeploy with a latest tag does not update revision #57
Comments
+1 Having this exact problem. Did you find a solution for this? |
+1 |
We use:
which creates two registry entries. |
+1 |
This is an important feature in order to be able to manage container apps with Terraform. lifecycle {
# we can not set the image tag to latest in github workflows, so we need to ignore the image in the lifecycle
# https://github.com/Azure/container-apps-deploy-action/issues/57
ignore_changes = [template[0].container[0].image]
} in the terraform ressource |
As a workaround you can use revision copy at the end in an extra step:
I added --revision-suffix because the revision has to be different than the previous one in order to redeploy, so I used workflow run id and attempt # |
We have the same issue, lost a few hours investigating this |
In the end I actually ended up tagging the container with their own version number by using Gitversion and the 'latest' tag, and just using the latest version in the ACA deploy step. |
I want to use this action to deploy "an already pushed application image".
In the CI/CD pipeline I create and push the image to the repository with the
latest
tag. However, when I specify the imageToDeploy parameter as: registry/image:latest everything works fine, however it will not create a new revision. The old revision stays online, until a new container is spinned up by a ACA scaling rule.Is this a design choice? For now I am using specific version numbers as tags, which works. But I would like to be able to use a
latest
tag, which represents the currently running version.The text was updated successfully, but these errors were encountered: