Commit Graph

3684 Commits

Author SHA1 Message Date
6543
b6b193bb15 Changelog for v0.14.4 (#733) v0.14.4 2022-01-31 15:59:37 +01:00
6543
aae4da6451 Docker Images use golang image for ca-certificates (#608)
backport docker files

close #605
2021-12-13 20:39:13 +01:00
6543
de5220e8ac Changelog for v0.14.3 (#497) v0.14.3 2021-10-30 14:58:28 +02:00
Alex Eftimie
ae3671e7fb Add flag for not fetching permissions (FlatPermissions) (#491)
* Rebase on 0.14

* Fixes from PR review
2021-10-28 12:36:32 +02:00
6543
96155a47ac Use go embed for web files and remove httptreemux (#382) (#489)
* Use go embed for web files and remove httptreemux (#382)

- replace togo with go embed
- replace httptreemux with gin

closes #308

* adapt

* ajust & cleanup

Co-authored-by: Anbraten <anton@ju60.de>
2021-10-28 09:12:41 +02:00
6543
dff44917e7 Gitea use default branch (#480) (#482)
instead of hard-coded default branch use what gitea tell us

Co-authored-by: Anbraten <anton@ju60.de>
2021-10-27 01:03:19 +02:00
6543
3af5f99fb2 Fix repo access (#476) (#477)
Backport #476

* fix repo access

* fix permission syncing

Co-authored-by: Anbraten <anton@ju60.de>
2021-10-26 23:27:05 +02:00
6543
f585b23811 Add changelog for v0.14.2 (#462) v0.14.2 2021-10-19 10:39:13 +02:00
Cyrill Burgener
586199571f Add TestPipelineName to procBuilder_test.go (#461) (#455)
Backport #461 

Add test for a bug where pipelines that use `depends_on` were not built in multi-pipeline builds. The problem is that pipelines names keep a leading `'/'` when the pipeline path does not have a trailing `'/'`.
2021-10-19 10:00:44 +02:00
6543
53efebd1f7 CI: fix build pipeline 2021-10-19 09:39:37 +02:00
Anton Bracke
aa4fa9aab3 fix sanitzie-path 2021-10-18 17:25:03 +02:00
6543
9c208c1ab0 Fix channel buffer used with signal.Notify (#421) (#423)
Co-authored-by: Masaya Watanabe <sfbgwm30@gmail.com>
2021-10-10 13:59:48 +02:00
6543
8368a17b06 Fix json tag for Pos at struct Line (#422) (#424)
Co-authored-by: Masaya Watanabe <sfbgwm30@gmail.com>
2021-10-10 13:59:23 +02:00
6543
112d227433 Use go's vendoring (#284) (#415)
* use vendoring

* add tools.go
2021-10-08 12:41:28 +02:00
6543
cf1c1a2496 fix go.mod 2021-10-08 10:59:02 +02:00
Alex Eftimie
47caa8cd85 Support recursive glob for path conditions (#327) (#412)
* Support glob with doublestar for path conditions

* Update docs and pipeline

Co-authored-by: Anbraten <anton@ju60.de>
2021-10-08 10:16:16 +02:00
6543
1dbec6fb57 Changelog for v0.14.1 (#334) v0.14.1 2021-09-22 15:59:31 +02:00
Veniamin Gvozdikov
caa21dd5be Increase allowed length for user token in db (#328)
After update to latest version gitea and use oauth, gitea returns long token in my case it was >800 characters. DB schema of the table has varchar(500), I updated it to varchar(1000) to solve the problem.

* Fix length for gitea token/secret
2021-09-21 21:12:43 +02:00
sam-tang-sw
3ed1e0a7fe Fix cli matrix filter (#311)
Using `when` (Conditional Execution) with `matrix` did not work, fix it.
2021-09-21 16:56:50 +02:00
Anbraten
9d7d345c3c Ignore pushes to tags for gitea (#289)
closes #274
2021-09-21 16:56:13 +02:00
Anbraten
a0a58c560d Use custom config path to sanitize build names (#280)
fix #270
2021-09-21 16:55:38 +02:00
6543
214e10ef17 Backport new build config 2021-09-21 16:36:56 +02:00
6543
46f6747558 Migrate jwt token lib (#332)
* migrate from github.com/dgrijalva/jwt-go to github.com/golang-jwt/jwt

* migrate
2021-09-21 16:21:41 +02:00
6543
c304996250 Changelog for v0.14.0 v0.14.0 2021-08-01 00:49:11 +02:00
Anbraten
830b03619e Fix: allow multi pipeline file to be named .drone.yml (#250) 2021-07-22 12:53:56 +02:00
Malachi Soord
41f2bc026d Tidy up readme (#253) 2021-07-20 23:20:35 +02:00
Anbraten
7851ced1d4 Fix VSCode launch config to be able to debug server and agent (#249) 2021-07-19 15:36:33 +02:00
6543
84968f7e0b Docs: Fix rc tag v0.14.0-rc.2 2021-07-08 15:49:06 +02:00
6543
6bdadcdc49 Changelog for v0.14.0-rc2 (#241)
* add changelog-tool config (https://gitea.com/gitea/changelog)

* generate changelog

* improve text
2021-07-08 15:47:17 +02:00
ygbillet
c699ea5789 Add mutli-pipeline to Gitea (#225)
* Add mutli-pipeline to Gitea client
* Add multi-pipeline to Gitea OAuth client

ref: https://woodpecker.laszlo.cloud/multi-pipeline/

Signed-off-by: Yves-Gaël BILLET <ygbillet@ifotec.com>
Co-authored-by: Yves-Gaël Billet <yg.billet@gmail.com>
2021-07-05 19:33:02 +02:00
6543
ee3e4bb189 Add "path" support to gitea on push hooks (#235) 2021-07-04 20:38:59 +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
ygbillet
2f222cea25 fix: Build server with correct option (#237)
We must build server with CGO_ENABLED=1 because of mattn/sqlite3.

Co-authored-by: Yves-Gaël BILLET <ygbillet@ifotec.com>
2021-06-30 17:17:54 +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
Paweł Bogusławski
68dbd488a9 Using configured server URL instead of obtained from request (#175)
Woodpecker should use configured server URL when creating self
URL-s for VCS UI and not depend on URL read from request. In
case of internal calls like answers for webhooks from Gitea
on backend, address in URL may be internal and this causes
Gitea to display CI status for commit with intenal URL
to woodpecker not external one.
2021-06-28 19:28:18 +02:00
6543
d40a4a4b32 Enable go vet for ci (#230)
* enable go vet for ci

* fix vet issues

* move `./.cli.sh` into `make release-cli`
2021-06-22 13:26:37 +02:00
6543
b52ef5f270 ci: fix build (#231) 2021-06-22 13:12:26 +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
6543
310c46d3ab Switch in docs to new docker hub image repo (#227) 2021-06-18 20:48:22 +02:00
techknowlogick
77e046b47f Add OAuth2 Support for Gitea Remote (#226)
* add oauth support for Gitea

* go fmt

* cli flags
2021-06-17 09:02:44 +02:00
speatzle
b1ff2541b8 fix gitea "cannot authenticate user. 403 Forbidden" (#221)
Co-authored-by: slt <samuel.lorch@sp-online.de>
2021-06-05 10:55:48 +02:00
Marian Steinbach
16bdc9fe12 Move flag definitions into extra files (#215) 2021-05-31 14:35:47 +02:00
Marian Steinbach
3d083ec058 Remove unused code in server (#213) 2021-05-31 14:34:00 +02:00
Marian Steinbach
4824bb16a7 Wrap lines in LICENSE (#214) 2021-05-31 13:47:18 +02:00
Laszlo Fogas
a6ffa54639 We only support drone.yml for now 2021-05-31 13:43:57 +02:00
Laszlo Fogas
f9edbc5091 We only support .drone.yml for now 2021-05-31 13:42:22 +02:00
Laszlo Fogas
885812fb94 We only support .drone.yml for now 2021-05-31 13:40:28 +02:00
Marian Steinbach
dcb96af9c4 Use WOODPECKER_ env vars in docs (#211) 2021-05-31 13:31:52 +02:00
Marian Steinbach
8f76192b77 Show all env var names in log messages (#208) 2021-05-31 13:28:24 +02:00