Commit graph

3674 commits

Author SHA1 Message Date
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) 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 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 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
Laszlo Fogas
9bf8e05fd0
Merge pull request #205 from alexef/filter-main-branch
Filter main branch
2021-05-27 16:10:21 +02:00
Laszlo Fogas
62d3dd205e
Merge pull request #206 from alexef/docs-config
Docs URL configuration
2021-05-27 16:09:44 +02:00
Alex Eftimie
59abb98449 Fix lint 2021-05-27 07:33:11 +02:00
Alex Eftimie
a3a361ad10
Update setup.go 2021-05-27 07:27:13 +02:00
Alex Eftimie
1c2d4aba3b attempt to fix lint 2021-05-27 07:17:11 +02:00
Alex Eftimie
2139ed8973 Fix lint 2021-05-27 07:06:55 +02:00
Alex Eftimie
943a308afe Allow configuring the URL to user documentation 2021-05-27 06:58:30 +02:00
Alex Eftimie
00045028c0 Filter default branch
Allow the user to view only builds from main/master.
2021-05-27 06:49:18 +02:00
Alex Eftimie
f694d6f2e4 Merge remote-tracking branch 'upstream/master' 2021-05-25 16:43:03 +02:00
Laszlo Fogas
b48b8013df
Merge pull request #202 from woodpecker-ci/org-change
Org change
2021-05-25 14:18:31 +02:00