Replies: 4 comments 13 replies
-
@freddydk we talked about this at the tech days. |
Beta Was this translation helpful? Give feedback.
-
I like the idea of having places where you can inject custom jobs or steps, but it needs to be safe, both from a security perspective and from an upgrade perspective - not being broken every second day. |
Beta Was this translation helpful? Give feedback.
-
I did create a small prototype. Not sure this will get implemented or not - but if you create a test repository (do not use your prod repos for this test) and Update AL-Go System Files with freddydk/AL-Go@placeholders as your templateUrl - then your _BuildALGoProject.yaml file will contain some placeholders.
The Custom step will survive Update AL-Go System files because it is between the PreBuild.Start and PreBuild.End. Note that it is absolutely NOT certain that this will be implemented - it is just a test for now. The biggest problem I see with this is that people will have to make the same modifications to all their repositories - many partners would want to have the same rules for many repositories. The biggest advantage I see with this is that it is easy to develop and test your custom steps - you are allowed to modify your workflows in pre-defined areas. |
Beta Was this translation helpful? Give feedback.
-
This PR now contains an implementation suggestion of this: #715 Have a look at the description and try it out. https://github.com/freddydk/AL-Go@custom is the template URL you can try out. This is the way I envision that you can add your customizations and scripts to a indirect template repo and use that as the repo. |
Beta Was this translation helpful? Give feedback.
-
We sometimes have the requirements to run additional steps before/after the Business Central compile starts.
A usecase for this is for example to compile a markdown documentation or package other build artifacts.
My current implementation uses NewBcContainer.ps1 to execute code before the compilations starts. But this is pretty limited.
You are stuck in windows with powershell.
You won't be able properly integrate with github. For example its not possible to publish additional artifacts.
I've created a prototyp that should check if a PreBuild.yaml / PostBuild.yaml exsits in the .github/workflow folder.
But this has a pretty bad limitation. Every local file you reference needs to exsits if you want to use it in
uses:
.actions/runner#895
Even including an
if
in the workflow doesn't help.So to workaround this limitation, you will need to use the same mechnism thats used for the schedules.
You need to create a new property in the AL-Go-Settings.json when you run the UpdateSystemFiles Workflow you will need to create the workflow trigger in CICD,Current,NextMajor,NextMinor.
One thing im not sure yet. I only need to run something before and after the Build Matrix. But when this is implemented. Some People might prefer to have this run before every Run Pipeline.
I think in general is should be pretty easy. But before I start, I wanted to get some feedback on this.
Beta Was this translation helpful? Give feedback.
All reactions