News for hackers. Stuff that matters.
Re:Why the fuck are we templating YAML? (2019) by shortrounddev2 on Tuesday January 23, 2024 @12:23PM (#39106408)
I've always wondered why we seem to have implemented a whole programming language in yaml or json for so many CI/CD systems rather than just writing quick python scripts to describe the logic of a particular build step, then MAYBE using a JSON or XML file to enumerate the build steps and their order, like:

    build: src/build.py
    test: src/test.py
Re:Why the fuck are we templating YAML? (2019) by zamalek on Tuesday January 23, 2024 @12:29PM (#39106528)
Sure, that's orchestration, though. The problem with GHA is the sheer amount of expressive power that it has. If you need to do dynamic stuff then that should be in a "pre-workflow" step, written however/in whatever you please, that emits the actual workflow.
Re:Why the fuck are we templating YAML? (2019) by shortrounddev2 on Tuesday January 23, 2024 @12:45PM (#39106802)
Why shouldn't the python script be the discrete workflow step? It could be mounted on some file system which has checked out the git at a particular commit with a particular tag, then runs whatever tasks are required to validate or deploy the project
Re:Why the fuck are we templating YAML? (2019) by zamalek on Tuesday January 23, 2024 @02:28PM (#39108407)
100%, though I think that the step visualization during the build does hold some value.