Johan Van de Wauw
8fa2a5efe4
Fix various typos ( #835 )
2022-03-09 01:44:08 +01:00
6543
a3ac393264
Use shared func for registering Sigterm on a context ( #799 )
2022-02-28 09:27:31 +01:00
6543
071bd7418a
Fix tests and pipeline ( #732 )
...
* fix pipeline
* use EqualStringSlice to compare slices in tests
* full test coverage
* tests: wait for mysql/postgres to sync ...
2022-01-31 14:39:53 +01:00
Anbraten
401072abb1
Support ChangedFiles for Github & Gitlab PRs and Gitlab pushes ( #697 )
2022-01-17 23:46:59 +01:00
6543
5a120db69d
remove "panic()" as much as posible from code ( #682 )
2022-01-09 23:27:30 +01:00
6543
2f91bdd4a0
gofumpt -w -l -extra . ( #661 )
2022-01-05 21:50:23 +01:00
6543
e8807c5e53
Add "woodpeckerci/plugin-docker-buildx" to privileged plugins ( #623 )
...
* refactor global const in own package
* add "woodpeckerci/plugin-docker-buildx" to privileged plugins
* add woodpeckerci/plugin-docker
2021-12-19 12:46:36 +01:00
Anbraten
ed0a9fd756
Use gitlab generic webhooks instead of drone-ci-service ( #620 )
...
Benefits:
- the webhook delivery history of the drone-ci-service is broken (no way to check if a webhook was successfully delivered by Gitlab)
- drone-ci-service has limited events support (for example no comment or branch deleted event)
- independent from drone integration in general
2021-12-19 01:12:09 +01:00
6543
1172dc3311
Write own yaml2json func ( #570 )
...
* fix regression of #384
* add more tests
2021-12-07 01:13:02 +01:00
Anbraten
ffed327564
Remove ghodss/yaml ( #384 )
2021-12-06 18:17:31 +00:00
Lukas
680d003a29
Add linter revive ( #554 )
...
* Add linter revive
* Add underscore to variable name to prevent shadowing
* Remove unnecessary leading underscore
* Revert changes to vendor file
* export ConfigFetcher as interface
* no 'yoda conditions'
* rename envsubst
Co-authored-by: 6543 <6543@obermui.de>
2021-12-01 14:22:06 +01:00
Lukas
25bf91bd37
Add linter whitespace ( #531 )
2021-11-24 01:31:11 +01: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
luzpaz
9b687a923e
Fix various typos ( #416 )
...
Fix various typos found via `codespell -q 3 -S vendor -L pullrequest,pullrequests`
2021-10-08 18:35:56 +02:00
6543
3837e03866
github.com/golang-jwt/jwt v3.2.2 -> v4.1.0 ( #397 )
2021-10-04 15:35:47 +02:00
6543
f81bd8c656
Extend Logging & Report to WebHook Caller back if pulls are disabled ( #369 )
...
* Add more logging
* Format Code
* Add TODOs
* Fix nits
* Delete two unused functions
* Report to WebHook Caller back if pulls are disabled
2021-09-27 23:32:08 +02:00
Anbraten
0fa271f465
Add json schema and cli lint command ( #342 )
...
- Add json schema file
- Add tests to validate sample pipeline files
- Add new command `lint` to cli to test a directory or single file to use correct schema
Example: `woodpecker-cli lint ./pipeline/schema/.woodpecker/`
---
close #275
preparation for #276
Co-authored-by: 6543 <6543@obermui.de>
2021-09-27 02:38:15 +02:00
6543
0bd10fa507
Cleanup Code ( #348 )
...
* Fix "Empty slice declaration using a literal"
* Fix "collides with imported package name"
* Remove unused code in pipeline
* Remove unused oauth2.providerAuthHeaderWorks()
* Add TODOs
* Format Code
* Cleanup doublestar import
* Migrate deprecated functions
Co-authored-by: Anbraten <anton@ju60.de>
2021-09-24 16:29:26 +02:00
6543
ac46ee9345
Migrate jwt token lib ( #332 )
...
* migrate from github.com/dgrijalva/jwt-go to github.com/golang-jwt/jwt
* migrate
2021-09-21 12:55:25 +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
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./...
2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7
add apache license header to files
2018-02-19 14:24:10 -08:00
Alexey Palazhchenko
e259c64bac
Expose OAuth2 errors, avoid redirect loop.
...
Closes #1775 .
2016-12-19 08:42:56 +03:00
Brad Rydzewski
f930545410
refactoring github package to increase test coverage
2016-05-02 17:47:58 -07:00
Brad Rydzewski
0fb4aeda3f
bump to 0.5 in master
2016-05-02 12:21:25 -07:00
Brad Rydzewski
faf7ff675d
use new .drone.sig signature file
2016-04-21 17:10:19 -07:00
Brad Rydzewski
9b306a1bc8
load all things via middleware
2016-04-12 13:08:17 -07:00
Brad Rydzewski
cc93df0370
removed server package
2016-04-11 15:49:10 -07:00
Matthias Loibl
c039bc7a16
Fix misspellings in comments
...
Found by https://goreportcard.com/report/github.com/drone/drone
2016-03-27 01:14:00 +01:00
Brad Rydzewski
b5dcfc4edd
remove vexp from vendoring process
2016-03-07 11:23:49 -08:00
Mac Browning
7a49d0324b
use dockerclient.Wait to block for in-progress builds
2016-02-12 13:54:16 -05:00
Mac Browning
110b9c3dd2
resume waiting for the container to complete
2016-02-12 13:23:11 -05:00
Brad Rydzewski
cfdfbcfd3b
didn't realize gin supports net.Context. Change to support Context pattern!
2015-10-21 16:14:02 -07:00
Brad Rydzewski
7f9ef94f47
unit testing postgres, mysql. temporary workaround for backticks
2015-10-20 00:08:09 -07:00
Brad Rydzewski
ffd42a1a0e
use helper function to create test db connection for planned pg support
2015-10-19 11:45:53 -07:00
Brad Rydzewski
505ec312b5
Merge remote-tracking branch 'upstream/0.4.0' into 0.4.0
2015-10-19 10:42:18 -07:00
Brad Rydzewski
23a044d076
fix postgres table creation
2015-10-19 10:41:57 -07:00
Philip Witty
834b7aff4a
Fix MySQL init scripts
...
* Fix a few failing statements in script
* Changed max length of owner/repo name to 255 (limit of 100 in github and 255 in gitlab). MySQL can't handle a unique field of more than 767 bytes by default
2015-10-19 16:29:18 +01:00
Brad Rydzewski
93c78150b6
ability to refresh tokens
2015-10-04 19:39:44 -07:00
Brad Rydzewski
66d54ade7c
adding index to track authors
2015-10-02 16:52:50 -07:00
Brad Rydzewski
130c133b92
added helper queries for user builds
2015-10-02 16:16:41 -07:00
Brad Rydzewski
fc4b106949
added enqueued
columns to build and job to track queue wait times
2015-10-01 14:35:25 -07:00
Brad Rydzewski
dfea14c7e5
updated vendor files and paths
2015-09-29 18:21:17 -07:00
Brad Rydzewski
155576fb03
moved to single binary project structure
2015-09-29 17:53:21 -07:00
Brad Rydzewski
d9fd23a6df
experimental branch. playing around with boltdb
2015-04-07 01:20:55 -07:00
Brad Rydzewski
aa3eeda9b8
Merge pull request #932 from jvortmann/check_presence_socat_anywhere_in_path_using_command_v
...
Use 'comand -v' to check presence of socat anywhere in path #869 .
2015-03-22 10:26:43 -07:00
Joao Vortmann
0e3b499996
Use command -v to check socat anywhere in path #869 .
2015-03-22 10:11:03 -03:00
Nathan Williams
9eb82d6ceb
use same cached volumes between branches
2015-03-11 12:21:08 -07:00
masarakki
70e24d7c6c
always update docker image when :latest tag
2015-03-07 10:25:29 +09:00
Brad Rydzewski
cd1fed3d53
backing out change to perl script proxy
2015-02-20 17:41:32 -08:00
Brad Rydzewski
ba5db98d44
Merge pull request #870 from bradrydzewski/master
...
embedded socat polyfill for #869
2015-02-20 17:37:25 -08:00
Vsevolod Strukchinsky
803bcbfec2
Remove LANG and LANGUAGE from environment
...
Closes #119
2015-02-18 12:36:29 +05:00
Brad Rydzewski
90d9c7d301
perl tcp proxy tests
2015-02-06 23:29:50 -08:00
Brad Rydzewski
26fd14a8cc
added embedded proxy
2015-02-06 22:38:08 -08:00
Brad Rydzewski
452beba83d
Update user.go
...
fix migration database issue using zeroisnull
2015-02-05 11:18:06 -08:00
Brad Rydzewski
64aeeff3ae
Merge pull request #856 from Bugagazavr/gitlab-ouath
...
Refresh only expired tokens
2015-02-04 22:11:14 -08:00
Kirill Zaitsev
6ca94970d6
Refresh only expired tokens
2015-02-04 13:18:46 +03:00
Kirill Zaitsev
ec825996c9
Added last build time
2015-02-01 04:26:10 +03:00
epipho
717bef75dd
Adding test for get build number. Moved build number env build injection
2015-01-28 23:39:09 -05:00
epipho
5f8b026d14
All builds now have a per-repository monotonically increasing build number accessible via DRONE_BUILD_NUMBER
...
and CI_BUILD_NUMBER env variables.
2015-01-28 21:13:22 -05:00
Kirill Zaitsev
d225181a0f
Refresh tokens before any requests to remote
2015-01-27 02:33:27 +03:00
Brad Rydzewski
f209d126db
fixed govet issue
2015-01-13 23:32:25 -08:00
Brad Rydzewski
d0b722cc8b
Insert and Update Users instead of generic Save function. Check ID != 0
2015-01-13 21:57:02 -08:00
Matt Bostock
b027bd8392
Run gofmt and add test to prevent regressions
...
Run `go fmt ./...` [1] and add a test to the `test` make target that
checks if `go fmt` has been run.
[1]: http://blog.golang.org/go-fmt-your-code
2015-01-11 18:54:34 +00:00
Brad Rydzewski
f890d42019
fixed unit test
2014-12-30 13:17:54 -08:00
Brad Rydzewski
c3e00e2608
improved error messaging for failed build due to Docker errors
2014-12-30 13:09:05 -08:00
Michael Nutt
b94280c15c
Change from notification after_success
and after_failure
to change
...
Also removes the extra db field; instead, just send Prior as part of the Request.
This reverts commit e8b993e7da
.
2014-12-30 13:25:14 -05:00
Michael Nutt
e8b993e7da
Add support for after_success and after_failure to email notifications
...
This allows you to restrict email notifications to only be sent after the build changes from success to failure or failure to success. It errs on the side of sending the notification; if the build is in another state (hung, for instance) or there was no previous build on the branch the email will also be sent.
Since the notify plugin shouldn't really have any responsibility for querying the database to find the previous commit's status, we store it on the commit when we save it.
2014-12-30 11:37:57 -05:00
mopemoepe
2059c6f4e6
Fix Docker Client FileDescriptor Leak
2014-12-19 01:58:17 +09:00
Brad Rydzewski
f86e73bdbf
Merge pull request #720 from floatdrop/hostname-in-drone-yml
...
Add hostname in docker section of .drone.yml
2014-12-14 23:18:06 -08:00
Kirill Zaitsev
6609d09e91
Move env variables outsude docker build #PR2
2014-12-12 12:01:12 +03:00
Kirill Zaitsev
6b586c62da
Move id_rsa outside docker build #PR1
2014-12-12 01:42:38 +03:00
Ke Zhu
c6bc20dca7
parse build file with params injection
2014-12-07 11:26:43 -05:00
Vsevolod Strukchinsky
78b8b7dd75
Add hostname in docker section of .drone.yml
2014-11-20 15:18:12 +05:00
Christopher Brickley
270ce52b76
add gogs support
2014-11-18 21:50:05 -05:00
Brad Rydzewski
65fbfed035
reverse sorting private params when injecting
2014-11-11 09:26:15 -08:00
Kirill Zaitsev
a4cc2e2949
Return ErrInternalServer when docker server return 500 code
2014-11-07 19:58:10 +03:00
Brad Rydzewski
f21fd563e8
fixes #639
2014-11-01 11:28:59 -07:00
Igor Dolzhikov
7e9dcce3cb
second excluding of unused transformation
...
sorry, could not grep it all before
2014-10-27 00:47:54 +06:00
Seb
98229b25a0
support for gitlab
...
fix for #627
2014-10-26 01:45:52 +02:00
Vsevolod Strukchinsky
54a6e56611
Add docker section in .drone.yml with net option
2014-10-24 00:01:44 +06:00
Brad Rydzewski
1cb74a90e3
Merge pull request #599 from bradrydzewski/remote-workers
...
Updated Docker Client to accept TLS
2014-10-22 23:50:43 -07:00
Brad Rydzewski
7009778176
added token to post-commit hooks
2014-10-22 00:13:47 -07:00
Brad Rydzewski
2c4e992f1f
drone client accepts docker host, cert and key
2014-10-21 01:17:33 -07:00
Brad Rydzewski
8436bd0270
minor docker client refactoring
2014-10-21 00:52:35 -07:00
Brad Rydzewski
7dfc67113d
cleanup docker.New to overload, so to speak
2014-10-21 00:38:19 -07:00
Brad Rydzewski
505ebe7024
removed hard-coded http
in Docker client
2014-10-20 22:52:34 -07:00
Brad Rydzewski
f4aa84a057
updated Docker Client to accept TLS
2014-10-20 02:29:59 -07:00
Daniel Graña
94d7f12667
Detect https scheme when serving ssl
2014-10-15 09:51:05 -02:00
Brad Rydzewski
629547813c
modified parameter injection strategy. see #538
2014-10-12 13:02:53 -07:00
Brad Rydzewski
ea05ec725a
merged plugin changes from master to exp
2014-10-11 15:35:25 -07:00
Brad Rydzewski
bc0f7182ae
removed unused methods from Commit struct
2014-10-05 22:25:08 -07:00
Brad Rydzewski
7f4f5bdfbc
fixed docker imports due to package change
2014-10-01 11:41:42 -07:00
Brad Rydzewski
58f287a541
added worker handlers
2014-09-29 21:34:30 -07:00
Brad Rydzewski
21f9aec808
added new handlers and workers
2014-09-28 18:36:24 -07:00
Brad Rydzewski
7fed5f5de6
fixed docker test to use new default port
2014-09-23 23:57:43 -07:00
Brad Rydzewski
cc87e7a1fa
fixed default Docker port to match post 1.0
2014-09-23 23:36:07 -07:00
Brad Rydzewski
177d9cab93
fixed failing limited writer test
2014-09-23 22:59:43 -07:00
Brad Rydzewski
2632fcb86e
Merge remote-tracking branch 'origin/exp' into exp
2014-09-23 20:49:23 -07:00
Brad Rydzewski
73060a463c
added limit to streaming output to avoid crashes
2014-09-23 20:47:40 -07:00