You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DozUmesh
changed the title
[Question]:
[Question]:Guidance on Scheduling Production Deployments and Managing Multi-Project Setup in GitHub AL-Go
Jan 21, 2025
on 1. - this is not supported out-of-the-box yet. Currently you will have to run the Publish to Environment after creating a release. It is also not supported to schedule this deployment at this time. Both these things are something we are debating on how we solve this in the best way.
on 2. - this repo: https://github.com/businesscentralapps/buildorder shows how we envision this. I have a Common and a Misc project, in which we can have some apps - then there is a W1 project with the W1 version and an DK and IT project with the Danish and Italian version. UseProjectDependencies is true for AL-Go to build apps in the right order.
It is also possible to place your source code in seperate folders and then create AL-Go projects, which references the apps you want to build (https://github.com/microsoft/BCApps uses this approach) - this means that the same AL app can be build in different AL-Go projects.
On deployments to QA and PROD - current recommendation is to setup CD to QA and deploy manually to PROD.
If you want to create a schedule for running PublishToEnvironment, what you would need to do currently is to create a new .yaml file in the .github/workflows folder in your repository with the following content:
This workflow will run every friday evening at 20:00 (8PM) and deploy the Current (which is the latest released bits) to the PROD environment.
By changing the CRON tab or the appVersion / environmentName environment variables - you can modify the behavior.
You need a working GHTOKENWORKFLOW PAT secret for this workflow to work.
Question
I’m currently using GitHub AL-Go to manage CICD for Business Central extensions and need assistance with two key areas:
Scheduling a Deployment to Production
How can I schedule a production deployment to trigger automatically once a new release is available?
Handling a Multi-Project Setup
I reviewed this guide but still have questions about managing a setup with:
Specifically, I’m unsure about:
Could you provide guidance on these aspects?
The text was updated successfully, but these errors were encountered: