Commit graph

3995 commits

Author SHA1 Message Date
6543 84e428122d
Add Changelog for v0.15.6 (#1498) 2022-12-23 19:22:28 +01:00
6543 bad0df4ae8
ci: pin golang version (#1499) 2022-12-23 19:19:25 +01:00
Anbraten 414df473f9
Disable metrics access if no token is set (#1470)
backport of #1469
2022-12-23 18:13:00 +01:00
6543 7651c7311d
bump DefaultCloneImage version to v2.0.x 2022-12-23 18:05:15 +01:00
6543 9128c9156d
Update golang.org/x/net (#1494)
Fix CVE-2022-41717
2022-12-23 18:02:58 +01:00
6543 86e4985147
Bump frontend dependencies and remove unused (#1404)
close  #1266
2022-11-06 21:14:58 +01:00
Michael e95aaaa8de
Update json schema for cli lint to cover valid cases (#1384)
This is a follow up on #1379 and #1381, after fixing those (I noticed
them while building a pipeline for one of my projects) I took a deep
dive into the schema, and consolidated the functionality as far as
possible.

As a reference, I matched it against
pipeline/frontend/yaml/constraint//constraints.go of the release/v0.15
branch.

The .branches while not in the pipeline uses the Type (List) and
functions of pipeline/frontend/yaml/constraint//constraints.go

Regarding the formatting i went with what was already there, since
enabling editorconfig / formatting would have changed most of the file
(not that there is too much untouched after this anyways)
2022-11-05 00:08:56 +01:00
Michael 80080bdf47
Add pipeline.step.when.branch string-array type to schema.json (#1380)
Previously the schema only accepted string, this fixes #1379 and matches
the linter to the existing capabilities of the constraints.go (and
therefore server).
2022-11-01 13:13:02 +01:00
6543 3127ba9c7c
Display system CA error only if there is an error (#870) (#1286)
Backport #870
Close #1281

Co-authored-by: mscherer <mscherer@users.noreply.github.com>
2022-10-18 10:09:15 +02:00
6543 5d95a7cede
disable lint step 2022-10-14 13:34:09 +02:00
6543 5a267a5ea8
update golang.org/x/text v0.3.7 -> v0.3.8
CVE-2022-32149
2022-10-14 12:18:05 +02:00
6543 8acc1b6875
Update dep moby (#1263) (#1264)
backport #1263
2022-10-14 12:13:10 +02:00
6543 328f10447a
Changelog v0.15.5 (#1255) 2022-10-13 18:12:27 +02:00
6543 cc01c5b064
Bump DefaultCloneImage version to v1.6.0 (#1254)
backport 47e212fd5e
2022-10-13 17:48:51 +02:00
Lauris BH 4669c1bc2a
Change build message column type to text (#1252) (#1253)
Backport #1252
2022-10-13 16:51:25 +02:00
6543 6460b4c96d
On Repo update, keep old "Clone" if update would empty it (#1170) (#1195)
fixed #1169 

after debugging, I found that:
if `Clone` in database is empty, before

https://github.com/woodpecker-ci/woodpecker/blob/master/server/api/hook.go#L128,
the `repo.Clone` be always unset, so clone is failed.

This PR makes the empty `Clone` can't overwrite the value in database.

Co-authored-by: 想出网名啦 <a15315862177@163.com>
2022-09-19 00:18:24 +02:00
Alexis Lefebvre 25280f1497
use example.com instead of foo.com (#1188)
http://example.com/ is a reserved domain name, which is perfect for
examples, while foo.com is a random domain name
2022-09-14 15:15:06 +02:00
6543 441f59b39b
Update golang.org/x/net dep 2022-09-14 07:39:03 +02:00
6543 bffdc0a7bf
Partial-Backport of pipeline from current master (#1167) 2022-09-04 23:25:40 +02:00
6543 98dae07c59
Add Changelog for v0.15.4 (#1165) 2022-09-04 17:33:04 +02:00
6543 9e3dceda48
Extract commit message from branch creation (#1150) (#1153)
if commit already exist

close https://codeberg.org/Codeberg-CI/feedback/issues/52
2022-09-02 16:42:17 +02:00
6543 ba4de28590
Respect WOODPECKER_GITEA_SKIP_VERIFY (#1152) (#1151) 2022-09-01 22:56:52 +02:00
6543 8faafd3519
Update golang.org/x/crypto (#1124) 2022-08-25 08:08:39 +02:00
6543 1fa5f31d44
Implement Refresher for GitLab (#1031) (#1120)
Packport #1031 (without unrelated refactoring)
2022-08-24 16:32:45 +02:00
Lauris BH 5758caff21
Make returned proc list to be returned always in correct order (#1060) (#1065) 2022-08-03 07:28:16 +02:00
Simon Vieille f510b4b6e6
Update type of 'log_data' from blob to longblob (#1050) (#1052)
Backport #1050

* Update type of 'log_data' from blob to longblob
* Add migration task to update log_data type
2022-07-29 17:21:50 +02:00
eleith 723d599c0a
Make ListItem component more accessible by using a button tag when clickable (#1044) (#1046)
Co-authored-by: eleith <online-github@eleith.com>
2022-07-25 15:08:35 +02:00
6543 5e1aa4019a
Update base images (#1024) (#1025)
Backport #1024

update alpine base image to current stable
and cross-build with golang v1.18
2022-07-17 10:13:41 +02:00
6543 d8a6b61918
Add Changelog for v0.15.3 (#981) 2022-06-16 19:02:24 +02:00
6543 d224d15fb5
Update github.com/containerd/containerd (#978) (#980) 2022-06-16 17:50:58 +02:00
6543 68faa57c49
Return to page after clikcing login at navbar (#975) (#976)
Co-authored-by: Anbraten <anton@ju60.de>
2022-06-16 15:10:14 +02:00
6543 6d87e73688
Changelog v0.15.2 (#966)
* Backport Changelog v0.15.1

* Add Changelog v0.15.2
2022-06-14 14:42:22 +02:00
Arno Hautala 8ddfdfed8e fix run_on references with runs_on in docs (#965) 2022-06-10 06:07:37 +02:00
6543 903c34580b
Fix uppercase from_secrets (#842) (#925)
Secret names where matched based on their lowercase value already just the conversion to lowercase for `from_secrets` was missing.

Co-authored-by: Anbraten <anton@ju60.de>
2022-05-17 23:50:50 +02:00
6543 63df54d1b2
fix key/val format for dind env vars (#889) (#890)
Co-authored-by: iderr <ibrahim@derraz.fr>
2022-04-23 20:21:42 +02:00
6543 c33d600fa8
Update helm chart releasing (#882) (#888)
closes #863, #792

Co-authored-by: Anbraten <anton@ju60.de>
2022-04-20 17:11:08 +02:00
Anbraten f2bf5931c2
fix: ansi logging (#880) 2022-04-13 22:45:30 +02:00
6543 5f2733f48a
adapt change of #822 for release branch 2022-03-02 18:21:04 +01:00
6543 caa3409e66
Build multiarch images for server (#821) (#822)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: relnod <mail@paul-schiffers.de>
2022-03-02 16:48:07 +01:00
6543 608d8934bf
Fix Makefile by exposing VERSION_NUMBER var for bundle targets (#816) 2022-03-01 15:53:36 +01:00
6543 27ba630dbd
Branch list enhancements (#808) (#809)
* Allow users not logged in to access branches page
  (fixes a nil pointer derefernce)

* Add Gogs support for branches

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2022-02-27 18:53:24 +01:00
6543 ce07632ffd
Get Netrc machine from clone url (#800) (#803)
We previously got the machine hostname for Netrc from the url of the remote, but in cases where the clone-url does not match the api url this can lead to errors.

Co-authored-by: Anbraten <anton@ju60.de>
2022-02-26 14:36:14 +01:00
6543 7a4c6d32de
Changelog v0.15.0 (#790)
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-02-24 17:34:49 +01:00
6543 56a854fe14
Update deps (#789)
* update github.com/docker/cli

* update github.com/docker/distribution

* update github.com/docker/docker

* update github.com/gin-gonic/gin

* update github.com/golang-jwt/jwt/v4

* update github.com/golangci/golangci-lint

* update github.com/gorilla/securecookie

* update github.com/mattn/go-sqlite3

* update github.com/moby/moby

* update github.com/prometheus/client_golang

* update github.com/xanzy/go-gitlab
2022-02-24 17:33:24 +01:00
6543 505cf8c09a
make gRPC error "to many keepalive pings" only show up in trace logs (#787)
hotfix #717

This comes from the agent being inactive / not sending and requesting any data if there a no pipelines waiting for him to execute. GRPC seems to only allow 2 pings without calling an actual endpoint before closing the connection. I think this will be indirectly solved in the moment we implement something like #536

https://github.com/grpc/grpc/blob/master/doc/keepalive.md

Co-authored-by: Anbraten <anton@ju60.de>
2022-02-24 15:53:44 +01:00
6543 f97f6f25b3
fix nfpm (#788)
fix #774
2022-02-24 15:35:11 +01:00
qwerty287 28e96a3851
View better error if repo was deleted/renamed (#780)
If the repo was renamed, there's an issue with Gitea: it redirects the /api/v1/repos/<owner>/<repo>/hooks POST request to a GET request at the same URL.
This URL returns the list of all hooks, thus the Gitea SDK can't parse the response into a single gitea.Hook type.

A better error is also visisble if the repo was deleted.
2022-02-24 14:54:05 +01:00
6543 c4960cdd2c
Ignore items from WOODPECKER_ENVIRONMENT only containing a key and no value (#781)
* fix 761

* refactor: rename to match what it does & log ignore case
2022-02-23 08:59:52 +01:00
René Schaar dde0678246
Update docker hub link (#779)
The old docker hub link directs you either to a login page or to your profile. I think it makes more sense to redirect the user directly to available images in the explore tab
2022-02-20 21:47:49 +01:00
qwerty287 13030b3d19
Increase margin for "No pipeline steps available!" (#777)
Just a simple UI improvement, set margin to `1rem` on the "No pipeline steps available!" message.
2022-02-14 15:21:28 +01:00