How do I realise my weird wish-setup #2651
Replies: 4 comments 2 replies
-
This is easy. There's a config service system, see docs: https://woodpecker-ci.org/docs/next/administration/external-configuration-api
This is not really doable without changing code. You can even skip webhooks functionality and complete use However, please note that we will not accept a PR adding something like this. You would have to manage your own fork of woodpecker adding this. If you're fine with this, this should stop you :) |
Beta Was this translation helpful? Give feedback.
-
On Thu Oct 26, 2023 at 8:02 AM CEST, qwerty287 wrote:
> I would prefer not to have configurations inside the repos themselves
This is easy. There's a config service system, see docs: https://woodpecker-ci.org/docs/next/administration/external-configuration-api
Thanks! I didn't associate that page with that.
> I want to use it "without a forge"
This is not really doable without changing code.
To be honest, this isn't unexpected, hence the offer to do the work
Adding a custom forge which actually isn't one is possible by implementing the `Forge` interface (https://github.com/woodpecker-ci/woodpecker/blob/main/server/forge/forge.go). There, you can easily write funcs that use e.g. an external oauth2 server.
Thank you, that is incredibly helpful!
However, please note that we will not accept a PR adding something like this. You would have to manage your own fork of woodpecker adding this. If you're fine with this, this should stop you :)
This however, is somewhat unexpected. May I ask for the reasoning behind
that? Without having taken a closer look at the code, I recon this
should be possible without introducing too many LoC and I think this may
also be useful for developers while debugging.
…--
Moritz Poldrack
https://moritz.sh
See label for sequence.
|
Beta Was this translation helpful? Give feedback.
-
I'm going to close this for now as a wontfix for woodpecker's core. The plugin system I mentioned is WIP in #2751 and once it's done you can implement anything as forge whatever you want. |
Beta Was this translation helpful? Give feedback.
-
@mpldr Starting from 2.1.0, Woodpecker has full support for addons. If you want to, you can realize your setup now by writing a custom addon. See https://woodpecker-ci.org/docs/next/administration/addons/overview |
Beta Was this translation helpful? Give feedback.
-
Hey, I want to use woodpecker for automating a few tedious tasks I have and for that I have to do some things that are probably considered weird:
ssh://git@git.…
which is not a code forge, but rather a server with reposgit-subtree
, so optionalWhat is the final goal? A single source of truth for my repos that is then "published" to code forges if I want it to (for example, don't push commits with a
tmp
prefix in the message). And more important: do some stuff with sensitive data, I would prefer not to host on a third-party system.After taking a look at the docs, I am already stumped on how to do the first two points. If development effort is needed, I'll be happy to do the work it takes to make this setup possible.
Beta Was this translation helpful? Give feedback.
All reactions