6543
904f9bb194
Update github.com/containerd/containerd ( #978 )
...
* update github.com/containerd/containerd
* go mod tidy && go mod vendor
2022-06-16 17:35:56 +02:00
Anbraten
cc30db44ac
Use asym key to sign webhooks ( #916 )
...
* use async key pair for webhooks
* fix tests
* fix linter
* improve code
* add key pair to database
* undo some changes
* more undo
* improve docs
* add api-endpoint
* add signaturne api endpoint
* fix error
* fix linting and test
* fix lint
* add test
* migration 006
* no need for migration
* replace httsign lib
* fix lint
Co-authored-by: 6543 <6543@obermui.de>
2022-06-01 20:06:27 +02:00
Anbraten
e79ad00826
Add agent tagging / filtering for pipelines ( #902 )
...
Officially support labels for pipelines and agents to improve pipeline picking.
* add pipeline labels
* update, improve docs and add migration
* update proto file
---
closes #304 & #860
2022-05-31 01:12:18 +02:00
6543
d06dfc86b4
Allow gitea dev version ( #914 )
...
* update gitea sdk to latest
* As before try to autodetect gitea version, if this does not work, assume it's latest version (v1.17.0 atm)
2022-05-14 17:34:40 +02:00
6543
1e9119ace9
Update backend dependencies ( #898 )
...
* update xorm.io
* update module
* update github.com/docker/cli
* update github.com/docker/distribution
* update github.com/docker/docker
* update github.com/gin-gonic/gin
* update github.com/golang-jwt/jwt/v4
* update github.com/golangci/golangci-lint
* update github.com/gorilla/securecookie
* update github.com/lib/pq
* update github.com/mattn/go-sqlite3
* update github.com/moby/moby
* update github.com/stretchr/testify
* update github.com/urfave/cli/v2
* update github.com/xanzy/go-gitlab
* finish
* update module
* clean
2022-05-05 19:36:49 +02:00
qwerty287
9c6c4559a7
Add SSH backend ( #861 )
...
Add SSH backend that runs commands via SSH.
Close #848
2022-04-29 12:30:50 +02:00
Lukas Bachschwell
59ba8538a1
Add support for pipeline configuration service ( #804 )
...
* Add configuration extension flags to server
Add httpsignatures dependency
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Add http fetching to config fetcher
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Refetch config on rebuild
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* - Ensure multipipeline compatiblity
- Send original config in http request
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Basic tests of config api
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Simple docs page
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Better flag naming
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Rename usages of the term yaml
Rename ConfigAPI struct
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Doc adjustments
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* More docs touchups
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Fix env vars in docs
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* fix json tags for api calls
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Add example config service
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Consistent naming for configService
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Docs: Change example repository location
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Fix tests after response field rename
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Revert accidential unrelated change in api hook
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
* Update server flag descriptions
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: Anbraten <anton@ju60.de>
2022-02-28 10:56:23 +01:00
6543
56a854fe14
Update deps ( #789 )
...
* update github.com/docker/cli
* update github.com/docker/distribution
* update github.com/docker/docker
* update github.com/gin-gonic/gin
* update github.com/golang-jwt/jwt/v4
* update github.com/golangci/golangci-lint
* update github.com/gorilla/securecookie
* update github.com/mattn/go-sqlite3
* update github.com/moby/moby
* update github.com/prometheus/client_golang
* update github.com/xanzy/go-gitlab
2022-02-24 17:33:24 +01:00
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
6543
29ab3543cb
code.gitea.io/sdk/gitea v0.14.1 -> v0.15.0 ( #263 )
2021-08-13 20:06:53 +02:00
6543
70958acc44
update / remove drone dependencies ( #236 )
...
* include github.com/drone/signal
* update github.com/drone/envsubst
* move github.com/woodpecker-ci/expr to woodpecker org
2021-06-30 19:15:28 +02:00
Alex Eftimie
2ff91e6a05
Add support for path-prefix condition ( #174 )
...
Example:
```yaml
when:
path: '*.md'
```
should match only builds in which the commit added/removed or modified files with the *.md extension
Co-authored-by: 6543 <6543@obermui.de>
2021-06-28 23:50:35 +02:00
6543
978d666eac
Update Dependencies
2021-06-28 19:33:58 +02:00
6543
bfc4aa8059
Enforce code format ( #228 )
...
* format .drone.yml & go code
* improve .editorconfig
* extend Makefile
* enforce go code format
* fix space
* update deps
* clean up
2021-06-22 12:34:35 +02:00
Laszlo Fogas
aef4ea3757
Further org move
2021-05-25 14:15:22 +02:00
Laszlo Fogas
c7ebd68232
Relaced laszlocph/woodpecker with woodpecker-ci/woodpecker
2021-05-25 14:08:27 +02:00
6543
ffe7306979
make deps
2021-04-27 18:02:26 +02:00
6543
494aa9c075
Update Gitea SDK to v0.14.0+1
2021-03-30 00:36:20 +02:00
Laszlo Fogas
5ea7098569
Go 1.16, go fmt, go modules update
2021-02-19 09:43:03 +01:00
6543
7519b0a772
Update Gitea SDK to v0.13.2
2021-01-29 16:04:29 +01:00
6543
4856774921
Update SDK to v0.13.1
...
Signed-off-by: 6543 <6543@obermui.de>
2020-09-29 20:06:02 +02:00
6543
02c957bcdd
Update Gitea SDK to v0.13.0 and refactor
2020-09-16 08:48:09 +02:00
6543
4e28420a64
update code.gitea.io/sdk/gitea to v0.12.0
2020-05-22 13:15:22 +02:00
Ian
f8aeb571f4
Fix dependencies
2020-05-19 15:02:09 +01:00
Ian
de010dfb39
Add global registry from docker config file on woodpecker server
2020-05-19 13:44:16 +01:00
Ian
a11db91e49
Upgrade dependencies
2020-05-18 16:41:15 +01:00
Laszlo Fogas
2889d3e3e6
Migrating to yaml.v3
2019-11-15 10:21:08 +01:00
Laszlo Fogas
59d854e3d8
Reconstructed the previously vendored and patched yaml.v2
2019-11-14 21:03:07 +01:00
Laszlo Fogas
b3343c2181
Switched to Go 1.13.3
2019-11-14 11:42:38 +01:00
Laszlo Fogas
8dee34878d
Version is now a string coming from ldlags and git tags
2019-11-12 21:10:16 +01:00
Laszlo Fogas
61a14df51b
Pull in frontend
2019-11-12 14:27:39 +01:00
Laszlo Fogas
4323353cbc
Finding the previously vendored file version of github.com/docker/distribution
2019-10-24 10:11:00 +02:00
Laszlo Fogas
364f01dd01
Running go build and go test - we have failing tests
2019-10-24 09:36:32 +02:00
Laszlo Fogas
29cab5aaf5
Running go mod init github.com/laszlocph/woodpecker
2019-10-24 09:34:31 +02:00