6543
b6e47a3f4a
Update deps ( #724 )
...
* update github.com/containerd/containerd v1.5.7 -> v1.5.9
* update github.com/lib/pq v1.10.3 -> v1.10.4
* update github.com/prometheus/client_golang v1.11.0 -> v1.12.0
* update github.com/rs/zerolog v1.25.0 -> v1.26.1
* update golang.org/x/crypto 2021-12-15 -> 2022-01-28
2022-01-29 16:04:50 +01:00
6543
70fcc173b9
Update github.com/xanzy/go-gitlab v0.51.1 -> v0.52.2 ( #599 )
2021-12-12 16:39:25 +01:00
6543
0061edcbe2
Remove gopkg.in/yaml.v2 ( #583 )
...
* rm "gopkg.in/yaml.v2"
* fix UnmarshalYAML for Networks & Ulimits
2021-12-08 23:35:51 +01:00
Anbraten
ffed327564
Remove ghodss/yaml ( #384 )
2021-12-06 18:17:31 +00:00
6543
fc6a2a9975
Remove github.com/kr/pretty in favor of assert.EqualValues() ( #564 )
...
* remove github.com/kr/pretty in favor of assert.EqualValues()
* code format
2021-12-04 13:23:33 +01:00
6543
fe31fb1e06
Drop error only on purpose or else report back or log ( #514 )
...
- Remove Deadcode
- Simplify Code
- Drop error only on purpose
2021-11-23 15:36:52 +01:00
6543
82fd65665f
Add linter bidichk to prevent malicios utf8 chars ( #516 )
...
bidichk checks for dangerous unicode character sequences
(https://github.com/golangci/golangci-lint/pull/2330 )
2021-11-16 21:07:53 +01:00
Lukas
c28f7cb29f
Add golangci-lint ( #502 )
...
Initial part of #435
2021-11-14 21:01:54 +01:00
6543
ca8e215cfa
Migrate to Xorm ( #474 )
...
close #234
* Migrate store
* Migrate tests
* Rewrite migrations
* Init fresh DB in on step
* Rm old stuff (meddler, sql files, dead code, ...)
2021-11-13 20:18:06 +01:00
6543
0bb62be303
Embedding libcompose types for yaml parsing ( #495 )
...
since github.com/docker/libcompose is deprecated, unmaintained and archived.
and license is the same as woodpecker's, we can just copy stuff into woodpecker directly.
(we only use types of that project anyway)
2021-10-30 17:52:02 +02:00
6543
91d37be1da
Update Dependencies ( #486 )
...
* github.com/Microsoft/go-winio
* github.com/bradrydzewski/togo
* github.com/containerd/containerd
* github.com/docker/cli
* github.com/docker/docker
* github.com/docker/docker-credential-helpers
* github.com/franela/goblin
* github.com/google/go-github/v39
* github.com/joho/godotenv
* github.com/lib/pq
* github.com/moby/moby
* github.com/prometheus/client_golang
* github.com/tevino/abool
* github.com/woodpecker-ci/togo
* github.com/xanzy/go-gitlab
* github.com/xeipuuv/gojsonschema
* github.com/mattn/go-sqlite3
2021-10-28 12:11:52 +02:00
6543
473a05d5b5
Update gogs client ( #487 )
...
* update github.com/gogits/go-gogs-client
* migrate
* fix test & use DefaultBranch
2021-10-28 10:09:27 +02:00
6543
e3033015ae
Use std methode to get SystemCertPool ( #488 )
...
* use std methode to get SystemCertPool
* vendor
* fix lint
2021-10-28 09:14:16 +02:00
6543
798c2bc8b2
Upgrade urfave/cli to v2 ( #483 )
...
* migrate urfave/ci v1 -> v2
* refactor cli (format flag)
* log error if agent can not listen on port 3000
close #452
2021-10-27 21:03:14 +02:00
John Olheiser
4276a04f0c
Move entirely to zerolog ( #426 )
...
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
6543
3837e03866
github.com/golang-jwt/jwt v3.2.2 -> v4.1.0 ( #397 )
2021-10-04 15:35:47 +02:00
6543
169e7e5aa3
Refactor Gitlab Remote ( #358 )
...
- Replace custom client
- Update Docs
- Test if it works
- Update Tests
close #285
2021-10-03 14:42:47 +02:00
Anbraten
ed6d3f3cea
Use go embed for web files and remove httptreemux ( #382 )
...
- replace togo with go embed
- replace httptreemux with gin
closes #308
2021-09-29 17:34:56 +02:00
6543
a82d569bd1
Upgrade github client ( #381 )
...
* update github client
* ajust types
2021-09-29 07:59:46 +02:00
Anbraten
0fa271f465
Add json schema and cli lint command ( #342 )
...
- Add json schema file
- Add tests to validate sample pipeline files
- Add new command `lint` to cli to test a directory or single file to use correct schema
Example: `woodpecker-cli lint ./pipeline/schema/.woodpecker/`
---
close #275
preparation for #276
Co-authored-by: 6543 <6543@obermui.de>
2021-09-27 02:38:15 +02:00
6543
da6fa0ec70
Use moby definitions for docker pipeline backend ( #364 )
...
* Migrate from docker to moby
* moby as interface docker as implementation
* Migrate deprecated func
2021-09-26 21:51:59 +02:00
Anbraten
07d793f727
Migrate go-docker to docker/docker ( #363 )
...
closes #325
2021-09-26 14:43:14 +02:00
6543
4df9c8d6a5
Update Dependencies ( #349 )
...
* github.com/russross/meddler v1.0.0 -> v1.0.1
* github.com/gin-gonic/gin v1.6.3 -> v1.7.4
* github.com/go-sql-driver/mysql v1.5.0 -> v1.6.0
* github.com/sirupsen/logrus v1.6.0 -> v1.8.1
* github.com/rs/zerolog v1.18.0 -> v1.25.0
2021-09-24 18:39:57 +02:00
6543
0bd10fa507
Cleanup Code ( #348 )
...
* 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
Jacob Floyd
7f4a205764
Remove legacy/unused code + misc cleanups ( #331 )
...
* delete obsolete cncd code
jsonrpc2 client+server, and the utils that used them (piped, pipec)
are not used anymore.
jsonrpc2 was replaced with grpc
piped+pipec were replaced by agents
* delete duplicate section in swagger file
* comment typos
* go mod tidy (websocket+jsonrpc2 no longer used)
* go mod vendor
Co-authored-by: Anbraten <anton@ju60.de>
2021-09-21 17:35:32 +02:00
6543
ac46ee9345
Migrate jwt token lib ( #332 )
...
* migrate from github.com/dgrijalva/jwt-go to github.com/golang-jwt/jwt
* migrate
2021-09-21 12:55:25 +02:00
Anbraten
96828b16c1
Support recursive glob for path conditions ( #327 )
...
* Support glob with doublestar for path conditions
* Update docs and pipeline
2021-09-21 06:18:43 +02:00
6543
194e01c9c6
[CI] Run "build" on pull too ( #287 )
...
* CI: run "build" on pull too
* vendor build tools too
2021-08-30 20:48:19 +02:00
6543
75513575be
Use go's vendoring ( #284 )
...
* store dependency's in git
* since we vendor ... rm tech-depts
* aad make target 'vendor' to update vendor folder (manual task)
2021-08-30 19:14:04 +02:00