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

198 Commits

Author SHA1 Message Date
4475f762e2 chore: update mocks 2025-03-10 13:58:57 +01:00
8d2c84cf37 chore: adjust backend imports 2025-03-10 13:58:40 +01:00
d4508074a8 chore: kubernetes - create service for detached steps (#4892)
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
2025-03-10 10:11:18 +01: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
c8d6831caf chore: rename missed env var to CROW_ 2025-02-11 18:27:35 +01:00
70f59a49fd chore: add CROW_ specific env vars for backends 2025-02-08 10:53:30 +01:00
7673d5253f refactor: migrate import paths from github to codeberg 2025-01-31 14:57:57 +01:00
5797d2c420 chore: editorconfig fixes 2025-01-20 15:34:57 +01:00
db61cd3f23 refactor: recreate all mocks 2025-01-19 20:51:22 +01:00
f262ab5c08 refactor: add CROW_ vars (#21) 2025-01-19 13:01:18 +01:00
5e0dc2688f refactor: use own import paths (#5) 2025-01-17 00:36:19 +01:00
0fba54d3cc Add hosts for detached steps (#4674) 2025-01-06 18:06:38 +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
1ec785c7e9 Weakly decode backend options (#4577) 2024-12-16 18:37:38 +01:00
fe11db6cd3 Replace discontinued mitchellh/mapstructure by maintained fork (#4573) 2024-12-16 07:41:49 +01:00
786a8fb003 Add user as docker backend_option (#4526) 2024-12-08 12:02:35 +01:00
db45794091 Fix apparmorProfile being ignored when it's the only field (#4507) 2024-12-03 17:29:03 +02:00
f829c07f3a Docker Backend: fully support windows container (#4381) 2024-11-26 11:48:48 +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
5d750322bc Normalize aarch64 -> arm64 for docker backend (#4451) 2024-11-25 16:17:57 +01:00
07baae28af address review lint issues (#4354) 2024-11-11 15:25:31 +01:00
b5915f605b fix error="io: read/write on closed pipe" on k8s backend (#4281) 2024-11-08 11:00:03 +01:00
bf5405b6cc Respect directory option for steps again (#4319) 2024-11-06 23:21:56 +01:00
560eab96f0 Kubernetes | Docker: Add support for rootless images (#4151) 2024-11-02 18:07:27 +01: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
bcecbbd398 Fix lint (#4032) 2024-08-14 22:37:05 +03:00
c0b1d6aaa4 Allow using args in container (#4011) 2024-08-07 21:11:55 +02:00
6c9469f610 Improved Local backend detection (#4006)
Co-authored-by: 6543 <6543@obermui.de>
2024-08-07 12:04:10 +02:00
ca41540151 Switched to profile-based AppArmor configuration (#4008)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-08-06 19:05:04 +02:00
dc10fb95ad Removed Kubernetes default image pull secret name (#4005)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-08-06 18:47:31 +02:00
c5746ccb50 Fail on InvalidImageName (#4007) 2024-08-06 17:07:07 +02:00
123c4ae03e Update docker to v27 (#3972) 2024-07-25 00:43:21 +02:00
251129a29c fix(deps): update golang-packages (#3958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2024-07-22 18:18:26 +02:00
b2970dbf0d Refactor docker backend and add more test coverage (#2700)
collection of some smal nit's and additions of tests
2024-07-21 21:28:10 +02:00
cd5f6f71a2 Migrate to github.com/urfave/cli/v3 (#2951) 2024-07-18 01:26:35 +02:00
a076393561 Exclude dummy backend in production (#3877) 2024-07-08 16:29:43 +02:00
daeab8d3c7 Add dummy backend (#3820)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-06-30 23:06:07 -07:00
7bc38a1d8b K8s secrets reference from step (#3655) 2024-06-23 18:20:21 +02:00
044c3a6dd5 Respect cli argument when checking docker backend availability (#3770)
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2024-06-10 12:51:38 +02:00
065eebd306 Agent-wide node selector (#3608)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2024-06-03 17:25:28 +02:00
f6904d6662 Fix privileged steps in kubernetes (#3711) 2024-05-30 18:53:03 +02:00
42f2734308 cspell lint go code (#3706) 2024-05-24 22:35:04 +02:00
37ea906958 fix(deps): update golang-packages (#3713)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
2024-05-23 17:37:21 +02:00
89e100cfd1 Add godot linter to harmonitze toplevel comments (#3650) 2024-05-13 22:58:21 +02:00