Template a shared recipe .drone.yml configuration #68

Open
opened 2021-06-04 07:52:28 +00:00 by decentral1se · 3 comments
Owner

I'm sure we have diabolical bash scripts for doing these mass updates and then making making mass typos (😆) which is all fun but now sometimes I need to edit a specific line and my Bash-fu just isn't there.

So, how to template this out?

Current setup in the example recipe repo:

https://git.autonomic.zone/coop-cloud/example/src/branch/main/.drone.yml

I'm sure we have diabolical bash scripts for doing these mass updates and then making making mass typos (😆) which is all fun but now sometimes I need to edit a specific line and my Bash-fu just isn't there. So, how to template this out? Current setup in the example recipe repo: > https://git.autonomic.zone/coop-cloud/example/src/branch/main/.drone.yml
decentral1se added this to the Beta release milestone 2021-06-04 07:52:28 +00:00
decentral1se added the
enhancement
help wanted
labels 2021-06-04 07:52:28 +00:00
Author
Owner

Current need: I want to add a webhook to every recipe repo drone config to fire a request at the soon coming coop-cloud/drone-apps-jsonrepository which makes automated releases of the apps.json.

Also, we could probably tweak the triggers/conditions of when a release is fired because now it happens on every commit.

Current need: I want to add a webhook to every recipe repo drone config to fire a request at the soon coming `coop-cloud/drone-apps-json`repository which makes automated releases of the `apps.json`. Also, we could probably tweak the triggers/conditions of when a release is fired because now it happens on every commit.
Owner

"Template" = "mass-add to the existing repos"?

If so, maybe a job for mosh + yq?

I'm down for this tasty exercise in mass-typoesupdates this week, unless you get there first.

"Template" = "mass-add to the existing repos"? If so, maybe a job for [`mosh`](https://github.com/bimlas/bash-mosh) + `yq`? I'm down for this tasty exercise in mass-~~typoes~~updates this week, unless you get there first.
Author
Owner

mosh looks rad but I was more thinking of a https://github.com/tmrts/boilr like thingwhere we can template out a file, use if/else/etc. conditionals and then that can generate files which can be copied into the repos? Then we don't have to manually fiddle with line-by-line operations with yq. Still thinking about this one though...

`mosh` looks rad but I was more thinking of a https://github.com/tmrts/boilr like thingwhere we can template out a file, use if/else/etc. conditionals and then that can generate files which can be copied into the repos? Then we don't have to manually fiddle with line-by-line operations with `yq`. Still thinking about this one though...
This repo is archived. You cannot comment on issues.
No description provided.