Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out reusable CI logic into vendor-neutral source code #412

Open
sanmai-NL opened this issue May 27, 2023 · 0 comments
Open

Factor out reusable CI logic into vendor-neutral source code #412

sanmai-NL opened this issue May 27, 2023 · 0 comments

Comments

@sanmai-NL
Copy link
Contributor

sanmai-NL commented May 27, 2023

Currently you have GitLab CI as well as a GitHub Actions declarations. It would be better to factor out e.g., shell scripting incorporated in the related YAML files into dedicated scripts. These could then be called and reused (composed) from multiple contexts. This change would improve maintainability (DRY). Furthermore, such scripts can also be run locally and used for container image production etc..

Side note: I advise to not go the way of shell scripting, since it looks simple in the beginning but then gets out of hand easily. Shell scripts also harder to port to Windows or various UNIX-like OS'es due to subtle differences, and at some point in some context these cases will arise ... I advise to write Python scripts that use the standard library exclusively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant