woodpecker/server/model
Anbraten d494b6a959
Use forge from db (#1417)
This is the first step towards support for multiple forges (#138). 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 #621

addresses #138 

# 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
..
agent.go Fix agent updating (#3287) 2024-01-28 12:29:56 +01:00
commit.go Set correct link for commit (#3368) 2024-02-11 10:44:50 +01:00
config.go Make PipelineConfig unique again (#3215) 2024-01-18 23:50:29 +02:00
const.go Add release event trigger (#3226) 2024-01-30 17:39:00 +01:00
cron.go Update swagger API specification (#1782) 2023-06-03 21:38:36 +02:00
environ.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
event.go Rename to pipeline in DB and JSONs (#1296) 2022-10-22 15:54:43 +02:00
feed.go Clean up models (#3228) 2024-01-22 07:56:18 +01:00
forge.go Use forge from db (#1417) 2024-04-16 08:04:55 +02:00
log.go Index stepID for logEntries so loading time decrease significantly (#2006) 2023-07-17 02:35:20 +03:00
netrc.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
org.go Use forge from db (#1417) 2024-04-16 08:04:55 +02:00
pagination.go Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
pagination_test.go Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
perm.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
pipeline.go Rework addons (use rpc) (#3268) 2024-04-15 10:04:21 +02:00
pull_request.go Change PullRequest Index to ForgeRemoteID / string type (#2823) 2023-11-26 00:52:52 +01:00
redirection.go Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
registry.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
repo.go Use forge from db (#1417) 2024-04-16 08:04:55 +02:00
resource_limit.go Refactor: move model/ to server/model/ (#366) 2021-09-27 19:51:55 +02:00
secret.go Refactor internal services (#915) 2024-02-11 18:42:33 +01:00
secret_test.go Improve secret availability checks (#3271) 2024-01-27 20:59:44 +01:00
server_config.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
step.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
step_test.go Add some tests (#2652) 2023-10-28 13:37:54 +02:00
task.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00
team.go Update swagger API specification (#1782) 2023-06-03 21:38:36 +02:00
user.go Use forge from db (#1417) 2024-04-16 08:04:55 +02:00
user_test.go Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
workflow.go Simplify store interfaces (#3437) 2024-02-25 10:37:10 +01:00