Replies: 1 comment 2 replies
-
Your container environment and your containers are most likely on different life cycles. As in "apps are deployed multiple times a day, the environment not so much". The cleaner and probably easier solution is to split these tasks:
This also scales better when you have multiple containers and you get GitHub Actions to loop through all of them and deploy. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Bicep to deploy an app into Azure Container Apps, the Container App is initialized with a dummy hello-world container.
Here is my code:
After the creation of the container app, the next versions are deployed using GitHub actions.
But the issue is that if I want to redeploy my bicep template, it will remove the last version of my app deployed via GitHub Actions, and put the hello-wolrd container instead, which breaks my app.
Is there a way, to tell bicep not to replace my container if it already exists ? Or maybe create a container without setting an image ?
Beta Was this translation helpful? Give feedback.
All reactions