Replies: 4 comments 2 replies
-
Thanks for starting the discussion.
I think we should just auto detect if the workspace file is part of a git working space. If that is the case, we should honor the
Yes, I like that idea and I've also recently thought that having this would be cool. Regarding the command line UI, I would just extend the There are a few things to consider:
Lets see what @dirkgroot thinks.. |
Beta Was this translation helpful? Give feedback.
-
I also think that adding an option for including all branches in the generated site is a good idea.
This is why I decided to always start from a freshly cloned repository when generating a site from a Git repository. It prevents us from having to deal with these kinds of edge cases. I think that it is wise to always assume that people are going to use this not only from build pipelines, but also from their local development machine.
I'm not so sure about the
I think we should always bail out if one branch fails. That way it's easy to spot errors in either your CI pipeline configuration or in the C4 model on a failing branch. I think that adding a "conditional bailout" like you describe would just make things more complex, with no real benefit to make up for that added complexity.
Refs for branches and tags are maintained separately in the |
Beta Was this translation helpful? Give feedback.
-
I don't know exactly how the current branch magic works, but I guess when introducing a wildcard, we should not pass this wildcard just to the shell, but evaluate the branches in our code. (assuming that I understood your comment correctly)
That would mean that branches need to be sane at every moment in time. Looking at my own work flow, sometimes I do create branches just to play/experiment or to push intermediate results (draft or WIP). Those branches will thus prevent valid changes on master/main to appear on the generated site in a CI scenario. I agree with regard to dirty working spaces and branch/tags. That said, not touching existing working spaces results in not building other branches for the initial scenario where the cloning has already happened by GitHub actions. May be the GitHub action needs to be setup without cloning, not sure what is possible there? |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion as the feature has now been added and will be released soon. |
Beta Was this translation helpful? Give feedback.
-
Currently there are two main options for building a site, one if use the workspace.dsl file in the local specified directory and the other is to specify a GitHub repository and loop the specified branches to use the workspace file in those branches.
I build my site via GitHub Actions which already does the cloning of the site and then uses the local workspace.dsl file option to generate the site, but that means that I can't generate the sites for multiple branches.
I'm wondering how useful it might be to have some sort of command line parameter like -isGitRepository which would generate the site similar to the option of adding a repository url but skipping the cloning part because it is already cloned.
I'd also love to see the -branches parameter expanded to all an option for 'all branches' while introducing a -ExcludeBranch option to remove certain branches (Like a gh-page branch that will hole the generated site). This would allow different architects or engineers to create a branch to build out a future state model, push it to the repository and have it build automatically without them having to add the branch name to the GitHub actions.
If you think there is interest in this idea I'd love to take an attempt at adding it.
Beta Was this translation helpful? Give feedback.
All reactions