6543
17d0f12cf3
fix second overflow build error ( #6415 )
2026-04-10 11:46:45 +03:00
6543
05218c972b
fix build error ( #6413 )
2026-04-09 14:54:46 +02:00
Uğur Tafralı
f2abd692e9
Fix Windows container exit code handling and error checks ( #6411 )
2026-04-09 05:07:22 +02:00
qwerty287
926470fdb5
Migrate to moby ( #6357 )
2026-03-31 16:58:27 +02:00
6543
af471c5372
Fix pipeline cancel ( #6320 )
2026-03-30 19:33:54 +02:00
qwerty287
79cc07265e
Unify import aliases ( #6328 )
...
Co-authored-by: 6543 <6543@obermui.de >
2026-03-28 15:45:23 +01:00
qwerty287
3156cd687c
Fix license headers ( #6205 )
2026-03-23 11:54:07 +01:00
6543
904a40674f
Detached or service steps report back too ( #6039 )
2026-02-07 09:18:13 +01:00
6543
8a8f9ad3aa
Fix pipeline cancellation status handling and step state synchronization ( #6011 )
...
Co-authored-by: pnkcaht <samzoovsk19@gmail.com >
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com >
Co-authored-by: Lauris B <lauris@nix.lv >
2026-02-05 21:41:05 +01:00
Sam Richard
b1cbd961b2
Fix/docker kill container on cancel ( #6018 )
...
## Fix: kill docker container on pipeline cancellation
### What was happening
When a pipeline step was canceled (e.g. manual cancel or agent shutdown), the Docker backend would stop waiting for the container but **would not actively terminate it**.
This caused containers running long-lived commands (like `sleep`, `tail -f`, servers, etc.) to continue running in the background.
## Related Issue
Closes #6016
### What this PR changes
This PR ensures that **when the step context is canceled**, the running Docker container is **immediately killed**.
- Listens to `ctx.Done()` in `WaitStep`
- Sends a `ContainerKill` using a non-cancelable context
- Preserves existing behavior for normal container exit
- Prevents orphaned containers after pipeline cancellation
### Why this approach
Docker containers do not automatically stop when the caller context is canceled.
Explicitly killing the container on `ctx.Done()` guarantees correct cleanup and matches expected CI behavior.
2026-01-27 00:19:44 +01:00
LUKIEYF
40f847b944
Add Header User-Agent for request client ( #5664 )
...
add Header User-Agent for request client for more precise in recognized the http request from.
close #3778
2025-11-05 11:41:48 +01:00
6543
2a97ae9bcd
Document pipeline backend engine interface precisely ( #5583 )
2025-10-01 13:06:34 +02:00
qwerty287
fe5ea7ad3b
Simplify backend types ( #5299 )
2025-07-05 12:59:17 +03:00
renovate[bot]
71f24f5d44
fix(deps): update golang-packages to v28.2.1+incompatible ( #5217 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de >
2025-06-06 07:20:03 +02:00
Robert Kaussow
496498274c
Use docker go client directly ( #5134 )
2025-04-26 13:20:36 +02:00
renovate[bot]
e7243e3ff5
fix(deps): update golang-packages ( #5111 )
...
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
qwerty287
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
Anbraten
5d3300824d
Fix workflow volume and network config ( #4650 )
2025-01-01 16:21:57 +01:00
qwerty287
428ba689cb
Remove workflow-level volumes and networks ( #4636 )
2024-12-30 10:34:59 +01:00
qwerty287
81b74025d4
Update Go imports paths ( #4605 )
...
Co-authored-by: Robert Kaussow <mail@thegeeklab.de >
2024-12-22 10:44:34 +01:00
qwerty287
1ec785c7e9
Weakly decode backend options ( #4577 )
2024-12-16 18:37:38 +01:00
Robert Kaussow
fe11db6cd3
Replace discontinued mitchellh/mapstructure by maintained fork ( #4573 )
2024-12-16 07:41:49 +01:00
Robert Kaussow
786a8fb003
Add user as docker backend_option ( #4526 )
2024-12-08 12:02:35 +01:00
6543
f829c07f3a
Docker Backend: fully support windows container ( #4381 )
2024-11-26 11:48:48 +01:00
Patrick Schratz
5d750322bc
Normalize aarch64 -> arm64 for docker backend ( #4451 )
2024-11-25 16:17:57 +01:00
6543
bf5405b6cc
Respect directory option for steps again ( #4319 )
2024-11-06 23:21:56 +01:00
Patrick Schratz
560eab96f0
Kubernetes | Docker: Add support for rootless images ( #4151 )
2024-11-02 18:07:27 +01:00
6543
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
qwerty287
123c4ae03e
Update docker to v27 ( #3972 )
2024-07-25 00:43:21 +02:00
6543
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
6543
cd5f6f71a2
Migrate to github.com/urfave/cli/v3 ( #2951 )
2024-07-18 01:26:35 +02:00
qwerty287
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
6543
42f2734308
cspell lint go code ( #3706 )
2024-05-24 22:35:04 +02:00
qwerty287
225ddb586d
Rework entrypoints ( #3269 )
...
Co-authored-by: Thomas Anderson <127358482+zc-devs@users.noreply.github.com >
Co-authored-by: 6543 <m.huber@kithara.com >
2024-05-02 14:52:01 +02:00
qwerty287
c9a3bfb321
Fix spellcheck and enable more dirs ( #3603 )
2024-04-09 09:04:53 +02:00
Robert Kaussow
a779eed3df
Enable golangci linter gomnd ( #3171 )
2024-03-15 18:00:25 +01:00
qwerty287
f92f8b17a3
Make agent usable for external backends ( #3270 )
2024-02-08 16:33:22 +01:00
qwerty287
5e2f7d81b3
Clean up models ( #3228 )
2024-01-22 07:56:18 +01:00
qwerty287
d1d2e9723d
Support custom steps entrypoint ( #2985 )
...
Closes https://github.com/woodpecker-ci/woodpecker/issues/278
---------
Co-authored-by: Anbraten <anton@ju60.de >
Co-authored-by: 6543 <6543@obermui.de >
2024-01-19 05:34:02 +01:00
qwerty287
001b5639a6
Use assert for test ( #3201 )
...
instead of `if`s
2024-01-14 19:33:58 +01:00
Thomas Anderson
0611fa9b32
Added protocol in port configuration ( #2993 )
...
Closes #2727
2024-01-12 23:57:24 +01:00
Robert Kaussow
f813badcf9
Enable golangci linter contextcheck ( #3170 )
...
Split out from https://github.com/woodpecker-ci/woodpecker/pull/2960
2024-01-11 22:15:15 +01:00
6543
f8fb28e651
More docker backend test remove more undocumented ( #3156 )
...
remove Sysctls and IpcMode
2024-01-11 19:30:13 +01:00
6543
c91c6fbe9e
TestToConfigSmall ignore sort order of env vars ( #3154 )
...
so this https://ci.woodpecker-ci.org/repos/3780/pipeline/11803/30 can
not randomly happen
2024-01-09 18:34:11 +01:00
6543
e3cf7b212c
fix also test of #3137
2024-01-09 16:36:17 +01:00
6543
06538504f8
fix regression: save env into configEnv
...
introduced by #3137
2024-01-09 16:28:10 +01:00
6543
12df59d0ec
Add step name as label to docker containers ( #3137 )
...
and add a test
2024-01-09 06:01:34 +01:00
Thomas Anderson
253d702bc7
Fix IPv6 host aliases for kubernetes ( #2992 )
...
Closes #2991
[Tests](https://github.com/woodpecker-ci/woodpecker/pull/2993#issuecomment-1868048169 )
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-12-23 00:42:30 +01:00
6543
cd9d425a0d
Fix cli lint throwing error on warnings ( #2995 )
...
split out from #2771
---------
Co-authored-by: Anbraten <anton@ju60.de >
2023-12-23 00:34:17 +02:00
qwerty287
ff1f51d6a9
Rename engine to backend ( #2950 )
...
rename based on https://woodpecker-ci.org/docs/usage/terminiology
---------
Co-authored-by: 6543 <6543@obermui.de >
2023-12-14 19:20:47 +01:00