6543
88236d8d59
godotenv use autoload everywhere ( #548 )
2021-11-27 03:01:06 +01:00
6543
e072e4cce7
Fix pipeline backend autodetect ( #545 )
...
* refactor:
- rename IsAvivable -> IsAvailable
- drop depricated Kill
- make sure backends implement interface
- rename backend struct for ide (better info)
* docker backend fix autodetect
2021-11-27 02:29:14 +01:00
6543
5e6b38e0e7
Server obtain remote from glob config not from context ( #540 )
2021-11-26 13:01:54 +01:00
6543
8b476e7722
Simplify web router code ( #541 )
2021-11-26 09:50:56 +01:00
Anbraten
c1a8884d62
Add backend selection for agent ( #463 )
...
- add backend selection option
- by default it will auto-detect a backend
2021-11-26 03:34:48 +01:00
Anbraten
65e10d46b3
Serve index.html directly without template ( #539 )
...
Remove not needed template functions
2021-11-26 01:12:44 +01:00
Lukas
fb333a3b1b
Add linter structcheck ( #537 )
2021-11-26 00:27:43 +01:00
Lukas
71485a8a3f
Add linter varcheck ( #538 )
2021-11-26 00:03:19 +01:00
Anbraten
f2b6a5c9c5
Fix passing of netrc credentials to clone step ( #492 )
...
closes #479
2021-11-25 21:30:03 +01:00
Anbraten
063d0bb32a
Replace DRONE_ with CI_ variables in pipeline steps ( #427 )
...
Dropped support for `DRONE_*` environment variables in pipeline steps. Pipeline meta-data can be accessed with `CI_*` variables.
- `CI_*` prefix replaces `DRONE_*`
- `CI` value is now `woodpecker`
- `DRONE=true` has been removed
2021-11-25 20:43:31 +01:00
6543
ff8ad5bb83
Fix registry delete ( #532 )
...
- Make make it possible to delete `"§4fda`
- Reject non urls for registry-address
- Fix #520
2021-11-25 19:04:36 +01:00
Lukas
fac0e16996
Add linter staticcheck ( #535 )
...
* Add linter staticcheck
Co-authored-by: 6543 <6543@obermui.de>
2021-11-25 17:15:36 +01:00
Lukas
116c310820
Add linter misspell ( #530 )
...
* Add linter misspell
* Fix spelling
Co-authored-by: Anbraten <anton@ju60.de>
2021-11-24 02:01:12 +01:00
Lukas
25bf91bd37
Add linter whitespace ( #531 )
2021-11-24 01:31:11 +01:00
Anbraten
57db3227ab
Fix overflowing commit messages ( #528 )
2021-11-23 17:15:50 +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
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