1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-07-06 22:15:44 +02:00
Commit Graph

19 Commits

Author SHA1 Message Date
f26a87acce Deduplicate step docker container volumes ()
Try to fix 

It's very hard to reproduce it and only way to fix when it gets in this
state is woodpecker agent restart.

This anyway fixes problem if step mounts and
`WOODPECKER_BACKEND_DOCKER_VOLUMES` conflict
2023-01-31 21:33:40 +01:00
b15ca52a63 Move constrain to only have a single command in backend to run to dedicated backends ()
at the moment we compile a script that we can pipe in as single command
this is because of the constrains the docker backend gives us.

so we move it into the docker backend and eventually get rid of it altogether
2022-10-31 00:26:49 +01:00
36e42914fa Renamed procs/jobs to steps in code ()
Renamed `procs` to `steps` in code for the issue 

Co-authored-by: Harikesh Prajapati <harikesh.prajapati@druva.com>
Co-authored-by: qwerty287 <ndev@web.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2022-10-28 17:38:53 +02:00
70114ed1fd Fix handling of empty strings for default docker volumes () 2022-09-27 11:43:35 +02:00
2e08dd2333 Add option to set default volumes for docker backend () 2022-09-26 16:59:26 +02:00
9c99406a06 Use archive.org to preserve code comment 2022-09-26 14:52:28 +02:00
62a1fd8dcb Add support to define a custom docker network and enable docker ipv6 ()
- Add support to define a custom docker network and enable docker ipv6
- Adjust docs
2022-04-29 15:15:32 +02:00
e178b7b4b2 Improve agent backend loading and suppress expectable errors ()
* improve agent loop loading backend once

* supress container not found or stopped warnings
2022-03-08 16:21:43 +01:00
3b52afab93 Use DOCKER_HOST env to search for docker before searching for a hardcode docker socket ()
Fix 
2022-02-09 00:08:20 +01:00
680d003a29 Add linter revive ()
* Add linter revive

* Add underscore to variable name to prevent shadowing

* Remove unnecessary leading underscore

* Revert changes to vendor file

* export ConfigFetcher as interface

* no 'yoda conditions'

* rename envsubst

Co-authored-by: 6543 <6543@obermui.de>
2021-12-01 14:22:06 +01:00
e072e4cce7 Fix pipeline backend autodetect ()
* refactor:
 - rename IsAvivable -> IsAvailable
 - drop depricated Kill
 - make sure backends implement interface
 - rename backend struct for ide (better info)

* docker backend fix autodetect
2021-11-27 02:29:14 +01:00
c1a8884d62 Add backend selection for agent ()
- add backend selection option
- by default it will auto-detect a backend
2021-11-26 03:34:48 +01:00
fac0e16996 Add linter staticcheck ()
* Add linter staticcheck

Co-authored-by: 6543 <6543@obermui.de>
2021-11-25 17:15:36 +01:00
fe31fb1e06 Drop error only on purpose or else report back or log ()
- Remove Deadcode
- Simplify Code
- Drop error only on purpose
2021-11-23 15:36:52 +01:00
4276a04f0c Move entirely to zerolog ()
Completely switch to zerolog

(Remove usage of logrus and std logger)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
2021-10-12 09:25:13 +02:00
da6fa0ec70 Use moby definitions for docker pipeline backend ()
* Migrate from docker to moby

* moby as interface docker as implementation

* Migrate deprecated func
2021-09-26 21:51:59 +02:00
07d793f727 Migrate go-docker to docker/docker ()
closes 
2021-09-26 14:43:14 +02:00
0bd10fa507 Cleanup Code ()
* Fix "Empty slice declaration using a literal"
* Fix "collides with imported package name"
* Remove unused code in pipeline
* Remove unused oauth2.providerAuthHeaderWorks()
* Add TODOs
* Format Code
* Cleanup doublestar import
* Migrate deprecated functions

Co-authored-by: Anbraten <anton@ju60.de>
2021-09-24 16:29:26 +02:00
e34daae0cf Move cncd/pipeline/pipeline/ to pipeline/ ()
* Refactor: move cncd/pipeline/ to pipeline/

* Refactor: move pipeline/pipeline/ to pipeline/
2021-09-24 13:18:34 +02:00