1
0
mirror of https://codeberg.org/crowci/crow.git synced 2025-08-04 22:02:15 +03:00
Commit Graph

261 Commits

Author SHA1 Message Date
4475f762e2 chore: update mocks 2025-03-10 13:58:57 +01:00
a28c366d14 feat: add CI_COMMIT_PULL_REQUEST_TITLE env var (#80)
fix #70

Reviewed-on: https://codeberg.org/crowci/crow/pulls/80
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2025-02-23 19:53:33 +00:00
cecfb22099 refactor: mocking (#38)
- `mockery` can now be run in one call instead of multiple ones
- Use the recommended "packages" approach which will be the new default moving forward
- Enforce consistent naming of mock files
- Remove warnings when invoking `mockery`
- Get rid of *many* linter warnings 🎉️

Reviewed-on: https://codeberg.org/crowci/crow/pulls/38
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
2025-02-15 10:23:47 +00:00
d3d9cc40f5 chore: update test file location 2025-02-10 10:43:13 +01:00
5724c3fae1 fix: Fix k8s secret schema (#4819) 2025-02-10 10:43:12 +01:00
7673d5253f refactor: migrate import paths from github to codeberg 2025-01-31 14:57:57 +01:00
3135c608f1 chore: improve error and linter messages 2025-01-21 22:55:26 +01:00
0bd5202468 chore: revert tab - spaces migration due to test errors 2025-01-20 22:00:29 +01:00
5797d2c420 chore: editorconfig fixes 2025-01-20 15:34:57 +01:00
f262ab5c08 refactor: add CROW_ vars (#21) 2025-01-19 13:01:18 +01:00
228fc36b08 chore: apply renamings in schema.json 2025-01-19 10:42:43 +01:00
030afa60b8 refactor: update translation files (#22) 2025-01-19 09:11:55 +01:00
5e0dc2688f refactor: use own import paths (#5) 2025-01-17 00:36:19 +01:00
41b732eb80 Apply changed files filter to closed PR (#4711) 2025-01-12 11:00:32 +02:00
5e75e4ec9c feat: add linter support for step-level depends_on existence (#4657) 2025-01-12 08:32:03 +02:00
7c31bcf327 Revert volumes/network list (#4656)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2025-01-04 11:56:26 +01:00
5d3300824d Fix workflow volume and network config (#4650) 2025-01-01 16:21:57 +01:00
428ba689cb Remove workflow-level volumes and networks (#4636) 2024-12-30 10:34:59 +01:00
afa6dee30b Migrate away from goblin (#4624)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2024-12-30 08:08:53 +02:00
fdfabe6368 Support Git as only VCS (#4346)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2024-12-27 22:49:19 +01:00
81b74025d4 Update Go imports paths (#4605)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2024-12-22 10:44:34 +01:00
532c3e3ed3 Do not set empty environment variables (#4193)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2024-12-02 22:18:09 +01:00
5bb7cef08b Allow to set custom trusted clone plugins (#4352)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com>
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-26 14:27:05 +01:00
ebf9f9ccbb Add dns config option to official feature set (#4418)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-11-25 17:59:00 +01:00
d3e73d1e4a Remove secrets in favor of from_secret (#4363)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-authored-by: Lauris BH <lauris@nix.lv>
2024-11-21 15:42:02 +01:00
4ed5e4e04d On wrong secrets/environment config syntax, fail with good error message (#4359)
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
2024-11-13 14:07:18 +01:00
a1193f0fb4 Improve linter messages in UI (#4351) 2024-11-11 23:34:20 +01:00
759e5497c9 Fix schema test (#4353) 2024-11-11 10:49:20 +01:00
8882ebcdbd Remove secrets from schema (#4345)
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
2024-11-10 16:38:55 +01:00
e13085b69f Pass settings to services (#4338) 2024-11-09 21:04:27 +01:00
560eab96f0 Kubernetes | Docker: Add support for rootless images (#4151) 2024-11-02 18:07:27 +01:00
29474fc7d9 Split repo trusted setting (#4025) 2024-11-01 21:37:31 +01:00
383bfbb6de Fix wording for privileged plugins linter error (#4280) 2024-10-30 22:14:12 +01:00
bd933669ef Fix snake_case env vars (#4267) 2024-10-28 17:23:49 +01:00
49e40772ca Deprecate secrets (#4235) 2024-10-24 08:36:29 +03:00
b52b021acb Implement registries for Kubernetes backend (#4092)
According to [the documentation](https://woodpecker-ci.org/docs/administration/backends/kubernetes#images-from-private-registries), per-organization and per-pipeline registries are currently unsupported for the Kubernetes backend.

This patch implements this missing functionality by creating and deleting a matching secret for each pod with a matched registry, using the same name, labels, and annotations as the pod, and appending it to its `imagePullSecrets` list.

This patch adds tests for the new functionality, and has been manually end-to-end-tested in KinD by using a private image hosted in the matching gitea instance.

This will require updating the matching helm charts to add the create/delete permissions to the agent role, which **is already done**.

close  #2987
2024-09-30 01:03:05 +01:00
6ad20ced5b Move docker resource limit settings from server to agent (#3174)
so you can set it per agent and not per server
2024-09-26 16:56:59 +01:00
b75a2cac10 Update image filter error message (#4143) 2024-09-26 13:04:07 +01:00
6f03102c68 directory key is allowed for services (#4127) 2024-09-19 07:30:30 +03:00
375309a8a8 Remove unused struct from metadata (#4120) 2024-09-16 23:30:31 +02:00
e89a2f38fd Make cli exec metadata on pair with build in server generated metadata (#4119)
remove some old environment and add all missing options to set the whole build-in environment on `cli exec` via flags


---
*Sponsored by Kithara Software GmbH*

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-09-16 22:03:24 +02:00
38ed7f9efd Remove some ci environment variables (#3846)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-09-08 08:59:58 +03:00
f7d12bf256 Linter: respect tags for linting of global privileged plugins (#4083)
https://ci.woodpecker-ci.org/repos/8981/pipeline/162/4 should have shown an lit error but it did not.

this fix it

a followup of https://github.com/woodpecker-ci/woodpecker/pull/4053
2024-09-05 00:25:22 +02:00
32d1ec7cec Remove all default privileged plugins (#4053) 2024-09-02 10:41:20 +02:00
5b208d2c01 Allow admins to specify priviledged plugins by name **and tag** (#4075)
previous the tags where ignored, now we respect them if set
2024-09-01 21:27:12 +02:00
3c8204a0e0 Allow alter trusted clone plugins and filter them via tag (#4074) 2024-09-01 20:41:10 +02:00
d02c6b7266 Use kaniko plugin in docs as example (#4072) 2024-09-01 15:31:52 +02:00
e4f954ef94 Remove all default 3rd party privileged plugins (#3918) 2024-08-31 19:04:47 +02:00
fb6068d836 Add option to filter secrets by plugins with specific tags (#4069)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-08-31 13:46:50 +02:00
e2a43e8467 Fix schema with detached steps (#4066) 2024-08-29 13:01:53 +00:00