Commit graph

3681 commits

Author SHA1 Message Date
Anbraten
289f0c9ad6
Change pipeline config path resolution (#299)
# Config resolution
- pipeline-config setting empty / not specified (default): `.woodpecker/` => `.woodpecker.yml` => `.drone.yml`
- pipeline-config setting defined by user: try that file / folder and no fallback (if a user sets some special value that is normally done for some reason)

# Changes
- pipeline-config setting will be empty by default
- remove fallback setting for config loading (simplifies config)

---
closes #133

---

* adjust config fetching mechanism

* default path empty

* remove fallback flag from ui and db
2021-09-17 21:40:43 +02:00
6543
d4ab506507
Add Support section to README (#310)
* Add Support section to README

* Add funding config for GitHub

Co-authored-by: Anbraten <anton@ju60.de>
2021-09-17 18:34:11 +02:00
Anbraten
2bfeb9e1fa
Improve administration docs (#307)
* Improve administration docs

* Correct docker image names

* Update docs README

Co-authored-by: 6543 <6543@obermui.de>
2021-09-16 18:50:53 +02:00
6543
a07f120d12
Community Guide (#296)
Add a Community-Guide

template was taken from [gitea](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md)

Signed-off-by: 6543 <6543@obermui.de>
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: Malachi Soord <inverse.chi@gmail.com>
2021-09-11 23:45:18 +02:00
Anbraten
3dd8092012
Issue templates (#298)
* add new issue templates

* adjust labels

* blank issues still enabled

Co-authored-by: 6543 <6543@obermui.de>
2021-09-11 19:22:38 +02:00
6543
d59fdb4602
[CI] Fix docs deploy & links (#301)
* set git commiter

* update links to docu

* fix image link
2021-09-11 18:48:52 +02:00
6543
9d8f3d2dc7
CI: fix pipeline "deploy-docs" 2021-09-11 17:22:05 +02:00
Anbraten
9267a46d5c
[Docs] Migrate docs framework to Docusaurus (#282)
- Replace mkdocs with docosaurus (improved menu structure, ...)
- Structure docs into `Usage` and `Server Setup / Administration`
- Update favicon
- Create new pipeline-syntax page with all options and links to more detailed docs if available
- Add ci to publish to `woodpecker-ci.github.io`
- Deploy docs preview to surge for review
- Update start-page

Co-authored-by: 6543 <6543@obermui.de>
2021-09-11 17:10:32 +02:00
mscherer
4e721c07cc
Fix docs/makefile after #284 got merged (#291) 2021-09-09 19:39:59 +02:00
Matthias Fulz
cf19b41ad4
Add flag for specific grpc server addr (#295)
Adding flag to server for setting up listen addr of grpc:

--grpc-addr / $WOODPECKER_GRPC_ADDR
2021-09-09 18:34:29 +02:00
Anbraten
d15769b17a
Ignore pushes to tags for gitea (#289)
closes #274
2021-08-31 03:00:29 +02:00
Anbraten
34cfabb56d
Fix filter pipeline config files (#279)
closes #271 

- filter pipeline config folders for `.yml` and `.yaml` files
- improve `fetchConfig` tests
- update remote mock and correct wrong folder name `mock` => `mocks` to match package name
- fix: return correct filename for fallback
- improve config loading by checking if folder or not before sending api call
2021-08-30 22:54:21 +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
Anbraten
8aeae0a651
Use custom config path to sanitize build names (#280)
fix #270
2021-08-29 22:25:41 +02:00
6543
6f4528f7f6
use multi pipelines 2021-08-29 22:21:32 +02:00
Anbraten
1a67fc6e99
Use server-host as source for public links and warn if it is set to localhost (#251)
* Use server-host as source for public links

* use config and rm GetURL()

* fix: solve import cycle

Co-authored-by: 6543 <6543@obermui.de>
2021-08-20 16:32:52 +02:00
Kevin
0e8c17e7e8
Use woodpecker env variable instead of drone in docker-compose (#264)
* use woodpecker env variable instead of drone

* update docker-compose version to 3

Co-authored-by: Kevin <kevin@example.com>
Co-authored-by: Anbraten <anton@ju60.de>
2021-08-17 21:16:03 +02:00
6543
29ab3543cb
code.gitea.io/sdk/gitea v0.14.1 -> v0.15.0 (#263) 2021-08-13 20:06:53 +02:00
Florian Piesche
5d6b8f4b12
[Charts] Add option to pass in topology pod constraints (#262) 2021-08-11 17:36:39 +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