6543
f454371e56
store migrations: cache migrations and add note ( #522 )
...
* Cache migrations instead of query each time
* Add a note of migration execute order
Co-authored-by: Anbraten <anton@ju60.de>
2021-11-23 05:06:46 +01:00
Nulo
34ff30010e
Show environ in every BuildProc ( #526 )
...
* Show environ in every BuildProc
* show environ next to build proc
Co-authored-by: Anbraten <anton@ju60.de>
2021-11-23 04:51:19 +01:00
Galen Abell
ee67e9adb4
Use monospace font for build logs ( #527 )
2021-11-22 20:15:14 +01:00
6543
51617e7f86
Rename struct field and add new types into server/model's ( #523 )
...
Resolve some todos in server/model:
* Move persistent queue into its own package
* Create Types: StatusValue, SCMKind, RepoVisibly
* Rename struct Repo fields: SCMKind, IsSCMPrivate
2021-11-22 12:55:13 +01:00
Isuru Fernando
d02dfe993f
Update docs about selecting agent based on platform ( #470 )
...
Update docs about selecting agent based on platform for global pipeline config
2021-11-21 02:18:34 +01:00
Tim Coombs
745090b3af
Update Agent and Pipeline syntax documentation ( #506 )
...
- Creates `Agent Config` with examples of agents and configuration options
- Updates `Pipeline Syntax`
- About the different types of conditionals
- Sort Order (Global -> Step -> Advanced)
- Move Conditional Steps to own page
Co-authored-by: 6543 <6543@obermui.de>
2021-11-20 20:45:59 +01:00
6543
07b32fa0fe
Update database in one transaction on syncing user repositorys ( #513 )
...
* userSyncer Sync commit changes in one transaction
* cover new cases with unit tests
2021-11-18 15:42:18 +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
6543
4891f104f0
Update only relevant cols on repo sync ( #512 )
...
close #511
2021-11-15 00:55:37 +01:00
6543
86bb8f195c
format do 'simplify' and check via CI ( #509 )
...
* `make format` simplify code now
* code format
* check simplified via linter
2021-11-14 22:33:45 +01:00
6543
2524c6900c
Fix reggression, save not activated repos to database on sync again ( #510 )
...
* Fix #508
* Add testcase
Unrelated nits:
* Rm one index (unique will already create an index)
* Do not drop on UpdateUser
2021-11-14 22:13:59 +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
aca5fddcf3
Use Goblin Assert as intended ( #501 )
...
this allow for better debugging if an error occur
2021-11-04 14:42:25 +01:00
Anbraten
58838f225c
Rewrite of WebUI ( #245 )
...
Rewrite of the UI using Typescript, Vue3, Windicss and Vite. The design should be close to the current one with some changes:
- latest pipeline in a sidebar on the right
- secrets and registry as part of the repo-settings (secrets and registry entries shouldn't be used as much so they can be "hidden" under settings IMO)
- start page shows list of active repositories with button to enable / add new ones (currently you see all repositories and in most cases you only add new repositories once in a while)
2021-11-03 17:40:31 +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
ed86de4fb4
Changelog for v0.14.3 ( #497 )
2021-10-30 15:33:35 +02:00
6543
f02789c74a
Fix bug where db file is posible moved outside of docker volume ( #496 )
...
#494 introduced a bug, where a migration function can remove the sqlite3 file outside of the mounted docker volume.
that would result in a data lose after a container recreate.
this fix it by only rename the file if in same folder else just use the old path as fallback and put warnings into the log
Co-authored-by: Anbraten <anton@ju60.de>
2021-10-30 14:53:24 +02:00
Anbraten
06800cb61e
Change paths to use woodpecker instead of drone ( #494 )
...
* change paths to use woodpecker instead of drone
* improve sql file migration
* add migration notice
2021-10-28 14:02:43 -05: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
965235e421
Remove some wrapper and make code more redable ( #478 )
...
* meaningful var names
* no context wrapper, use store directly
* retrieve store from context once
* rm store.GetRepoOwnerName
2021-10-28 11:12:58 +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
Anbraten
d35f5158bc
Add repo branches endpoint ( #481 )
...
* add repo branches endpoint
* add branches func to remotes
2021-10-27 02:47:55 +02:00
Anbraten
63a93087a1
Gitea use default branch ( #480 )
...
instead of hard-coded default branch use what gitea tell us
2021-10-27 00:37:01 +02:00
Anbraten
3c5827f08a
Fix repo access ( #476 )
...
* fix repo access
* fix permission syncing
2021-10-26 21:29:30 +02:00
Anbraten
b10f10a290
pin ua-parser-js versions to ^0.7.30 ( #467 )
2021-10-24 12:58:56 +02:00
Anbraten
0e867e2010
fix deb, rpm releases ( #465 )
2021-10-21 18:34:49 +02:00
Anbraten
7725058f03
Release deb, rpm bundles ( #405 )
2021-10-20 21:55:09 +02:00
Anbraten
0812a29163
Add plugin marketplace (for official plugins) ( #451 )
...
Co-authored-by: 6543 <6543@obermui.de>
2021-10-19 18:54:01 +02:00
6543
5990d32fd3
More logging and refactor ( #457 )
...
* only use "context"
* enable 'h2' support at server
* trace log remote and database config
* log loglevel on start
2021-10-19 11:44:49 +02:00
6543
2778bfed8e
Add changelog for v0.14.2 ( #462 )
2021-10-19 10:45:49 +02:00
Cyrill Burgener
fd8e0b248b
Add TestPipelineName
to procBuilder_test.go
( #461 )
...
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 09:35:10 +02:00
6543
bbbb53b9bc
Always wait 3s to fetch pipeline config ( #458 )
...
This fix a bug where first try will fail because timeout is 0s
2021-10-19 02:04:21 +02:00
John Olheiser
8e658c135d
Add log level API ( #444 )
...
* Add log level API
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update cli/loglevel/loglevel.go
Co-authored-by: Anbraten <anton@ju60.de>
* Move API to api routes
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Anbraten <anton@ju60.de>
2021-10-18 18:25:20 -05:00
John Olheiser
03bb0e69d8
Replace debug with log-level flag ( #440 )
...
* Add logging level to CLI and API
Signed-off-by: jolheiser <john.olheiser@gmail.com>
# Conflicts:
# server/router/router.go
* Apply suggestions from code review
Co-authored-by: Anbraten <anton@ju60.de>
* Refactor log level
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove API
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix API imports
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* do not relay on external default
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Anbraten <anton@ju60.de>
2021-10-16 17:41:36 -05:00
Anbraten
ed03a318c5
Improve docs ( #450 )
...
- update docusaurus
- add typescript
- add prettier
- add open-collective & sponsor us links
- add announcement bar (star on github)
- add mastodon (footer)
- collapse admin area in sidebar by default
- move faq doc to pages
2021-10-16 21:27:51 +02:00
Anbraten
4f8a9893cf
Add search to docs ( #448 )
2021-10-16 21:05:13 +02:00
6543
6828057f66
Switch default git plugin ( #449 )
...
* update pipeline samples
* update docs
* use woodpeckerci/plugin-git:latest as default
* code format nit
2021-10-15 19:54:28 -05:00
Anbraten
4cc8594b63
Update links to woodpecker-ci.org ( #445 )
2021-10-14 18:13:57 +02:00
John Olheiser
17c7fe6011
Add Zerolint ( #441 )
...
* Sort imports
Co-authored-by: Anbraten <anton@ju60.de>
2021-10-13 18:48:43 +02:00
Anbraten
fd9448cad7
simplify routes ( #437 )
2021-10-13 18:36:11 +02:00
Anbraten
72aa979644
Add repo permission endpoint ( #436 )
2021-10-13 14:16:26 +02:00
John Olheiser
12db87f8e6
Change prometheus namespace to woodpecker ( #439 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2021-10-13 08:34:57 +02:00
Anbraten
e6183e3378
Move api-routes to own file ( #434 )
2021-10-12 21:01:14 +02:00
Anbraten
f779860ff1
Add web-config.js endpoint ( #433 )
...
This is a preparation for #245 and adds a new endpoint (`.js``file) which can be included by the web-ui to get some config and credentials like the user profile or access-token.
2021-10-12 18:21:13 +02:00
Anbraten
3d6bc43ff1
Remove unused repo-config option ( #432 )
2021-10-12 12:00:03 +02:00
Anbraten
7eef7f7a52
build agent for multiple platforms ( #408 )
...
(arm, arm64, amd64, linux, windows, darwin)
2021-10-12 09:50:56 +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