Commit Graph

96 Commits

Author SHA1 Message Date
renovate[bot]
e7243e3ff5
fix(deps): update golang-packages ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-04-22 10:55:07 +02:00
Robert Kaussow
af68be196b
Add documentation for WOODPECKER_EXPERT env vars () 2025-03-18 13:15:00 +01:00
Robert Kaussow
9869f1be75
Add backoff retry for store setup () 2025-03-17 07:16:16 +01:00
Jack Gleeson
5ea4f0cfae
Add default option for allowing pull requests on repositories () 2025-02-20 19:28:28 +02:00
qwerty287
81b74025d4
Update Go imports paths ()
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2024-12-22 10:44:34 +01:00
qwerty287
355ebcd508
Drop native Let's Encrypt support () 2024-12-09 18:54:36 +01:00
6543
3da4240c45
Trim space to all config flags that allow to read value from file () 2024-11-28 10:44:41 +02:00
Patrick Schratz
196e2b6acf
Improve project settings descriptions ()
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2024-11-22 09:28:41 +01:00
Lauris BH
5699d22a55
Add server configuration option to add default set of labels for workflows that has no labels specified () 2024-11-14 22:23:42 +01:00
6543
04e8309e60
Add server config to disable user registered agents () 2024-11-11 18:51:14 +01:00
6543
6e38a950cd
Add options to controll the database connections (open,idle,timeout) () 2024-11-05 15:03:22 +01:00
Patrick Schratz
b0f52b9bc9
Correct spelling () 2024-10-29 17:43:54 +01:00
Patrick Schratz
785f2e6d6a
Increase WOODPECKER_FORGE_TIMEOUT to fix config fetching for GitLab () 2024-10-27 11:21:40 +01:00
6543
6ad20ced5b
Move docker resource limit settings from server to agent ()
so you can set it per agent and not per server
2024-09-26 16:56:59 +01:00
6543
32d1ec7cec
Remove all default privileged plugins () 2024-09-02 10:41:20 +02:00
6543
3c8204a0e0
Allow alter trusted clone plugins and filter them via tag () 2024-09-01 20:41:10 +02:00
6543
e4f954ef94
Remove all default 3rd party privileged plugins () 2024-08-31 19:04:47 +02:00
qwerty287
111eb7ef48
Fix dropped env vars ()
Co-authored-by: 6543 <6543@obermui.de>
2024-07-25 17:17:09 +02:00
6543
659e925d0e
Remove WOODPECKER_DEV_OAUTH_HOST and WOODPECKER_DEV_GITEA_OAUTH_URL ()
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-07-23 14:25:39 +02:00
6543
cd5f6f71a2
Migrate to github.com/urfave/cli/v3 () 2024-07-18 01:26:35 +02:00
qwerty287
c72468478d
Allow to store logs in files ()
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-06-06 14:34:57 +02:00
qwerty287
964860434c
Fix missing WOODPECKER_BITBUCKET_DC_URL () 2024-06-05 14:41:37 +02:00
6543
4ec046e415
Spellcheck "server/*" ()
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-06-04 08:30:54 +02:00
qwerty287
91b122e1ce
Native forgejo support ()
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2024-06-01 11:23:19 +02:00
Dan
6132136d55
Fix oauth file envvars ()
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-05-27 11:22:31 +02:00
Anbraten
5527d9bf86
Cleanup server env settings ()
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-05-15 15:45:08 +02:00
6543
378ec1a67a
Make retry count of config fetching form forge configure ()
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-05-13 19:43:45 +02:00
Anbraten
d494b6a959
Use forge from db ()
This is the first step towards support for multiple forges (). It
inserts a forge using the currently existing env varaibles into db and
uses this forge from db later on in all places of the code.

closes 

addresses  

# TODO
- [x] add forges table
- [x] add id of forge to repo
- [x] use forge of repo
- [x] add forge from env vars to db if not exists
- [x] migrate repo.ForgeID to the newly generated forge
- [x] support cache with forge from repo
- [x] maybe add forge loading cache? (use LRU cache for forges, I expect
users to have less than 10 forges normally)

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-04-16 08:04:55 +02:00
qwerty287
00f0fcd416
Rework addons (use rpc) ()
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-04-15 10:04:21 +02:00
Aumetra Weisman
20b84a1aee
Add flag to only access public repositories on GitHub () 2024-03-29 14:36:48 +01:00
qwerty287
326069c983
Fix flag name ()
and remove two unused flags

should close https://github.com/woodpecker-ci/woodpecker/issues/3528
2024-03-21 21:39:16 +01:00
qwerty287
fbdfa14a00
Allow separate gitea oauth URL ()
closes https://github.com/woodpecker-ci/woodpecker/issues/3470

---------

Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-03-21 11:37:02 +01:00
smainz
65a429d24a
Fix usage of WOODPECKER_DATABASE_DATASOURCE_FILE ()
fixes 

Set variable to let server detect if it's deployed within a container
image.
Set the default database connection based on this.

---------

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-02-26 20:12:41 +01:00
Thor Anker Kvisgård Lange
364d708923
Add bitbucket datacenter (server) support ()
This pull-requests re-introduces the Bitbucket Server support with a
more or less complete rewrite of the forge implementation. We have a lot
of on-premises git repositories hosted in Bitbucket Server and need a CI
solution for running that and Woodpecker looks promising.

The implementation is based on external Bitbucket Server REST client
library which we are maintaining and have created in another context.
Besides the original support for Bitbucket the re-implementation also
adds support for handling Bitbucket pull-request events.
2024-02-20 15:58:02 +01:00
qwerty287
0c05c38ddd
Move cmd/common to shared () 2023-12-31 23:29:56 +01:00
6543
74f6824d03
Add option to disable version check in admin web UI ()
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-27 22:16:15 +01:00
qwerty287
dfc2c265b1
Support go plugins for forges and agent backends ()
As of  

Support to load new forges and agent backends at runtime using go's
plugin system. (https://pkg.go.dev/plugin)

I also added a simple example addon (a new forge which just prints log
statements), it should be removed later of course, but you can see an
example.

---------

Co-authored-by: Michalis Zampetakis <mzampetakis@gmail.com>
Co-authored-by: Anbraten <anton@ju60.de>
2023-12-20 14:26:57 +01:00
qwerty287
360b41f961
Remove separate root path config () 2023-12-13 15:51:18 +01:00
runephilosof-karnovgroup
adb2c82790
Update go module path for major version 2 ()
https://go.dev/doc/modules/release-workflow#breaking

Fixes https://github.com/woodpecker-ci/woodpecker/issues/2913 fixes

```
runephilosof@fedora:~/code/platform-woodpecker/woodpecker-repo-configurator (master)$ go get go.woodpecker-ci.org/woodpecker@v2.0.0
go: go.woodpecker-ci.org/woodpecker@v2.0.0: invalid version: module contains a go.mod file, so module path must match major version ("go.woodpecker-ci.org/woodpecker/v2")
```

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-12-08 08:15:08 +01:00
6543
5a7b689e30
Switch to go vanity urls ()
Co-authored-by: Anbraten <anton@ju60.de>
2023-11-07 08:04:33 +01:00
qwerty287
d284aeb545
Fix default status ()
Regression 

probably closes 
2023-11-03 13:00:34 +01:00
qwerty287
abb2f280eb
Unique status for matrix ()
implement this fix but with an additional field on workflows to not
change the workflow name

closes  
closes 

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-11-01 17:28:02 +01:00
qwerty287
aeb7bcb26a
Remove WOODPECKER_DOCS config () 2023-10-25 15:05:19 +02:00
Tom Kneiphof
baaf8b97e1
Fix usage of WOODPECKER_ROOT_PATH ()
I had experienced some issues running Woodpecker behind a reverse-proxy,
resulting from not defining the `WOODPECKER_ROOT_PATH` environment
variable in .

As suggested by @qwerty287, specifying `WOODPECKER_ROOT_PATH=/foo`
*mostly* solved the issue of running the woodpecker server at an url
like `https://example.org/foo`.
However, the webhook urls and badge urls were generated excluding the
configured `WOODPECKER_ROOT_PATH`.

This PR (mostly) fixes issues related to non-empty
`WOODPECKER_ROOT_PATH`.

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-09-22 16:43:31 +02:00
Robert Kaussow
008a8c6acb
Fix usage description for backend-http-proxy flag () 2023-08-19 16:27:21 +02:00
6543
d253f8cc30
Make sure we dont have hidden options for backend and pipeline compiler ()
move options based on **os.Getenv** into flags

---------
*Sponsored by Kithara Software GmbH*
2023-08-07 21:13:26 +02:00
6543
3d4758578a
Add opt save global log output to file ()
close  

---------
*Sponsored by Kithara Software GmbH*
2023-08-07 20:47:30 +02:00
qwerty287
67b7de5cc2
Fix UI and backend paths with subpath ()
I'm not sure if this is an ideal fix for this, but it seems to work for
me. If you have another idea just let me know.

Closes  
Closes 
2023-08-07 16:05:18 +02:00
qwerty287
1a7f7a9427
Allow to disable swagger ()
https://github.com/woodpecker-ci/woodpecker/issues/1944
2023-08-03 02:42:30 +02:00
Robert Kaussow
443c23c58a
Use global logger for xorm logs and add options ()
Please let me know if this goes in the right direction. Needs some tests and docs.
2023-07-15 01:15:13 +02:00