Hi everyone,
We are working on our first Umbraco Cloud project and obviously occasionally run into some learning curve problems we have to solve. The latest one had us stumped for a bit, so I’d like to share and simultaneously ask for any advice on the topic from the more experienced Umbraco Cloud users here.
Basically, we added the umbraco-cloud.json file to our repository and in our CI/CD pipeline we modify the contents to add in the API key and client secret from our Azure DevOps secrets. After the artifacts are generated, we deploy to our Testing environment in Umbraco Cloud (the left-hand mainline environment).
This went fine during the first deploy, but successive deploys did not include updates to the file despite that the modifications were visible in the generated artifact. This in turn led to us not being able to use the Umbraco Cloud portal for deploys to Acceptance, receiving a fatal error (“Unable to read tree”).
After some deliberation and research (in addition to contacting Umbraco Support which wasn’t moving fast enough for us), we suspected that once this file is in place, it receives a sort of read-only mode where we are no longer allowed to overwrite it with our changes. To prove this theory, we entered Kudu tools and manually removed the file from Testing. Subsequently, a deploy to this environment with our pipeline resulted in our new version of the file being placed correctly in the Umbraco Cloud repository once again. We are now also able to promote the release to the next environment successfully.
Could anyone explain the reasoning behind these apparent shortcomings and perhaps advise us for the best course of action in the future? Manually deleting the file via Kudu doesn’t feel like a sustainable/reliable solution to us, so we’d be eager to hear thoughts from others on this topic.
Thanks in advance!
Kind regards,
William Parr