zlacker

[parent] [thread] 6 comments
1. i_s+(OP)[view] [source] 2021-08-19 16:07:57
Yea, making it so statements are composing via YAML was a very poor choice. One case I had was needing to change my actions so that steps D, E, and F could be retried together. What is the github YAML specification for decrementing a 'tries_remaining' variable, then going back to a previous step? I couldn't find it, so ended up just having to rewrite the action so that most of the steps are now in one bash script.

Not being able to execute it locally has also wasted a lot of time, and people needing to make 50+ changes to the master branch until they get it right.

replies(1): >>pc86+dx
2. pc86+dx[view] [source] 2021-08-19 18:45:05
>>i_s+(OP)
This might be an unpopular opinion but bundling CI/CD logic with the application code has been a huge blunder IME. If you're adding CI/CD for the first time to a brownfield project you're looking at dozens of minor YAML tweaks to master directly (or a bunch of rubber-stamped PRs).

Why can't I have a separate interface where I just say "build this Github project, and put the content on this on-prem server/kube cluster/VM/whatever."

replies(2): >>simonw+UD >>ljm+Fi1
◧◩
3. simonw+UD[view] [source] [discussion] 2021-08-19 19:16:52
>>pc86+dx
If I'm doing something complex with GitHub Actions I like to work in a branch, iterate with a bunch of messy tweak commits and then squash-merge into main once I've got it working exactly right.

Another trick that works well is putting GitHub Actions in an entirely separate repository. There's nothing to stop actions in one repo from checking out code from another - I use that trick quite frequently.

You do have to jump through a few extra hoops to set it up so that code in your actions repo starts running automatically on commits to your main repo, but you can do that with a small action in the main repo that triggers a build in the actions repo.

replies(2): >>xomodo+yH >>radus+0M
◧◩◪
4. xomodo+yH[view] [source] [discussion] 2021-08-19 19:35:03
>>simonw+UD
Interesting approach. Do you mind sharing link with repos?
replies(1): >>simonw+kP
◧◩◪
5. radus+0M[view] [source] [discussion] 2021-08-19 19:57:42
>>simonw+UD
These are both great tips, thank you!
◧◩◪◨
6. simonw+kP[view] [source] [discussion] 2021-08-19 20:14:59
>>xomodo+yH
I don't have any at the moment where a commit to one triggers a build in another, but I have a bunch that run on a schedule, pull code from other repos and do stuff with it.

Best example of that is here: https://github.com/simonw/covid-19-datasette/blob/main/.gith...

◧◩
7. ljm+Fi1[view] [source] [discussion] 2021-08-19 23:30:44
>>pc86+dx
Who CICD's the CICD? It's turtles all the way up.

Testing a pipeline that depends on a merge to a branch, or a specific tag, is troublesome. Easier to just iterate in the mainline until you're ready.

[go to top]