1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00
Commit Graph

3190 Commits

Author SHA1 Message Date
Brad Rydzewski
6397395570
Use 5s backoff with 1m timeout fetching .drone.yml 2017-11-28 11:36:22 -08:00
Brad Rydzewski
956418cae9 add sysctls to yaml 2017-11-17 14:49:01 -08:00
Brad Rydzewski
b891e14eca
Merge pull request #2263 from lodge93/bugfix/redirect-http-to-https-when-ssl-is-enabled
Redirect HTTP to HTTPS when SSL is enabled.
2017-11-15 21:10:37 -08:00
Mark Spicer
8476c90bbf Set the redirect handler for lets encrypt.
This commit sets the http handler to the redirect function for let's encrypt
enabled drone instances. In addition, the `Strict-Transport-Security` header is
added to the redirect given `header.Secure` will only be added for gin routes.

This commit resolves #2261.
2017-11-15 23:27:57 -05:00
Mark Spicer
238e916fa0 Redirect HTTP to HTTPS when SSL is enabled.
In our current drone setup, we are not using a proxy, thus letting drone handle
SSL termination. In addition, we are not exposing port 80 (effectively disabling
insecure drone access). When new engineers join and attempt to access drone,
they are not sent a 301 and often complain that they either do not have access
or that drone is broken (when in reality they are just accessing drone via the
incorrect protocol/port).

This commit changes the default behavior when running drone with a server-cert
by only sending redirects on port 80 rather than allowing both secure and
insecure access.
2017-11-15 21:36:02 -05:00
Brad Rydzewski
8eacbe382b
Merge pull request #2256 from appleboy/gitea-tag
fix missing commit sha and wrong tag link for Gitea.
2017-11-15 09:47:44 -08:00
Bo-Yi Wu
837ed7b84c Add testing.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-04 23:19:01 +08:00
Bo-Yi Wu
2a2ff0550c fix missing commit sha and wrong tag link.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-11-04 23:06:37 +08:00
Brad Rydzewski
0c972d8fc5 Create BUILDING [CI SKIP] 2017-10-21 10:29:14 -07:00
Bo-Yi Wu
8ad98fa42b add missing filter expr content.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-17 23:47:53 +08:00
Bo-Yi Wu
7c1b1c6d95 fix wrong filter variable.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-17 16:52:35 +08:00
Brad Rydzewski
578e8847cf Merge pull request #2241 from tboerger/fix-gitea
Urgent fix for changed auth behavior on Gitea
2017-10-13 07:59:47 -07:00
Thomas Boerger
517c003af2
Urgent fix for changed auth behavior on Gitea
Within the PR https://github.com/go-gitea/gitea/pull/2184 on Gitea the
project dropped the standard behavior to use x-auth-basic personal
access token. So we should use a proper username and the token from now
on to support Gitea >= 1.2.0. Since this driver anyway only supports
Gitea >= 1.2.0 this won't be a breaking change on Drone side, the only
breaking change is on side of Gitea!
2017-10-13 07:56:24 +02:00
Brad Rydzewski
c23b1fc9ac Merge pull request #2234 from wyw/readme [ci skip]
Fix typo
2017-10-12 16:50:52 -07:00
Brad Rydzewski
f660da3b1d Merge pull request #2240 from ptek/master
Fix gogs hookPullRequest actionSync typo
2017-10-12 16:50:00 -07:00
Pavlo Kerestey
96734122b9 Fix typo of gogs pull request synchronized action 2017-10-12 12:32:17 +02:00
Brad Rydzewski
b727a3ce55 Merge pull request #2239 from tboerger/fix-proc-start-date
Fix procs.proc_started value if not set
2017-10-06 13:31:32 -07:00
Thomas Boerger
5abfd70c53
Fix procs.proc_started value if not set 2017-10-06 22:17:48 +02:00
Brad Rydzewski
bb8c569249 add healthz endpoint to server 2017-10-05 14:17:27 -07:00
Brad Rydzewski
acb6a8b02a bump to 0.8.2 2017-10-05 14:03:14 -07:00
Brad Rydzewski
3529dda2ba enable dot(.) in usernames 2017-10-05 14:02:23 -07:00
Brad Rydzewski
8125f97c21 Merge pull request #2235 from bradrydzewski/master
prevent per-user concurrent sync
2017-09-29 11:30:48 -07:00
Brad Rydzewski
9a0a6f924e prevent per-user concurrent sync 2017-09-29 11:21:06 -07:00
元炜
a930403031
Fix typo 2017-09-29 09:49:56 +08:00
Brad Rydzewski
4fb589d61f Merge pull request #2232 from bradrydzewski/master
provide alpine-based images
2017-09-27 19:11:57 -07:00
Brad Rydzewski
ca8a00ecd5 remove deletion since we have --no-cache 2017-09-27 19:04:58 -07:00
Brad Rydzewski
243a2d0837 add alpine images 2017-09-27 19:01:52 -07:00
Brad Rydzewski
ec6016062b show loading status in user interface 2017-09-20 12:29:57 -07:00
Brad Rydzewski
ae51e9d1b9 force downgrade to http/1.1 because safari 2017-09-19 15:30:31 -07:00
Brad Rydzewski
4532110141 include aws dep 2017-09-18 15:48:01 -07:00
Brad Rydzewski
1bdfa4bf38 Merge remote-tracking branch 'origin/master' 2017-09-15 09:04:37 -07:00
Brad Rydzewski
2c9d50ccc6 should use correct status for killed 2017-09-15 09:04:21 -07:00
Brad Rydzewski
578762dc9c Merge pull request #2219 from bradrydzewski/master
graceful shutdown on SIGTERM
2017-09-14 18:46:32 -07:00
Brad Rydzewski
8c7d48ebed graceful shutdown on SIGTERM 2017-09-14 18:42:00 -07:00
Brad Rydzewski
a7e730ecf6 Merge pull request #2218 from msuterski/tag_base
Use 'base_ref' as branch name for github tag events.
2017-09-14 17:23:21 -07:00
marcin.suterski
96af18993a
Use 'base_ref' as branch name for github tag events.
This chnage adds ability to filter builds by the source branch name for tag
events from Github.
2017-09-14 20:16:58 -04:00
Brad Rydzewski
45357681a6 do not restart errored build 2017-09-14 15:33:12 -07:00
Brad Rydzewski
63ba6af242 fix nil perm issue 2017-09-14 15:20:20 -07:00
Brad Rydzewski
2f2144c4bd Merge remote-tracking branch 'origin/master' 2017-09-14 09:40:12 -07:00
Brad Rydzewski
63001a7c66 expose agent name to pipeline 2017-09-14 09:39:52 -07:00
Brad Rydzewski
bf454572f2 Merge pull request #2215 from bradrydzewski/master
add gitlab v3 option for backward compat
2017-09-14 07:57:53 -07:00
Brad Rydzewski
913d8701f2 add gitlab v3 option for backward compat 2017-09-14 07:50:07 -07:00
Brad Rydzewski
d9cb6ff866 Merge pull request #2210 from praxist/default_drone_yml
Add server env var to specify .drone.yml location
2017-09-13 08:13:58 -07:00
Matt Leung
820d07263b Add server env var to specify .drone.yml location
Allow setting DRONE_REPO_CONFIG to override default location of .drone.yml
2017-09-12 17:06:12 -07:00
Brad Rydzewski
538f256834 Merge remote-tracking branch 'origin/master' 2017-09-12 13:58:22 -07:00
Brad Rydzewski
d03eaaafa9 fix busted agent dockerfile 2017-09-12 13:58:06 -07:00
Brad Rydzewski
f5fc076bc1 Merge pull request #2209 from bradrydzewski/master
Provide a basic agent healthcheck
2017-09-12 13:45:58 -07:00
Brad Rydzewski
42b60bd822 more advanced health check logic 2017-09-12 13:40:24 -07:00
Brad Rydzewski
eca91f4ec7 provide a basic agent healthcheck 2017-09-12 11:25:55 -07:00
Brad Rydzewski
c665e5b1d2 Merge remote-tracking branch 'origin/master' 2017-09-12 09:44:50 -07:00