Commit graph

42 commits

Author SHA1 Message Date
qwerty287 8cdac56d8f
Check for correct license header (#2137) 2023-08-10 11:06:00 +02:00
qwerty287 270de5f574
Fix workflows again (#2129)
Since it does not work this is mainly a revert of #2127
2023-08-07 13:03:23 +02:00
qwerty287 516bc475b6
Speed up pipelines (#2127)
- Use workflow-global conditions to also skip the `clone` step for
`docs` and `web` workflows
- never run `test` and `web` for pushes (they're running for PRs and
every change we do must pass checks on PRs, so they're unnecessary)

https://github.com/woodpecker-ci/woodpecker/issues/1910
2023-08-07 10:58:42 +02:00
6543 c695175d21
Fix release branch and tagging (#2033)
frontport pipeline fixes
2023-07-25 16:29:01 +02:00
6543 6b59143c44
ci: run workflows on tagging too 2023-07-25 14:18:04 +02:00
6543 a890a0d4d4
Move securitychecks into own workflow (#1753) 2023-07-17 21:32:05 +02:00
6543 87cef4177c
fix pipeline 2023-07-12 23:31:59 +02:00
6543 ad8f0cd92b
fix pipeline 2023-07-12 23:27:22 +02:00
Patrick Schratz 308d88fae5
Run workflows only for PRs and master (#1983)
fix #1980

---------

Co-authored-by: 6543 <6543@obermui.de>
2023-07-12 23:25:05 +02:00
6543 a6d2c78916
Speedup pipeline (#1966)
- only build preview images for x86
- do not run `test` and `web` on default branch
2023-07-10 14:46:55 +02:00
6543 3f534cfff6
Optimize pipeline and switch to "steps" (#1901) 2023-06-30 13:32:17 +02:00
6543 7e708874ae
Rename yaml pipeline to steps (#1833)
Adjust pipeline-config to match
[Terminology](https://woodpecker-ci.org/docs/next/usage/terminology)
2023-06-07 12:04:37 +02:00
Martin W. Kirst 14177635b6
Update swagger API specification (#1782)
# Summary

This PR drops the outdated former swagger.yaml/json and introduced
automatic API document generation from Go code.
The generated code is also used to generate documentation/markdown for
the community page,
as well as enable the Woodpecker server to serve a Swagger Web UI for
manual tinkering.

I did opt-in for gin-swagger, a middleware for the Gin framework, to
ease implementation and have a sophisticated output.
This middleware only produces Swagger v2 specs. AFAIK the newer OpenApi
3x tooling is not yet that mature,
so I guess that's fine for now.

## Implemenation notes

- former swagger.json files removed
- former // swagger godocs removed
- introduced new dependency gin-swagger, which uses godoc annotations on
top of Gin Handler functions.
- reworked Makefile to automatically generate Go code for the server
- introduce new dependency go-swagger, to generate Markdown for
documentation purposes
- add a Swagger Web UI, incl. capabilities for manual API exploration
- consider relative root paths in the implementation
- write documentation for all exposed API endpoints
- incl. API docs in the community website (auto-generated)
- provide developer documentation, for the Woodpecker authors
- no other existing logic/code was intentionally changed

---------

close #292

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
2023-06-03 21:38:36 +02:00
6543 fb5b259856
temporary deactivate securitycheck for golang 2023-05-14 10:31:39 +02:00
Neil Hanlon a95a5b43bf
fix(backend/kubernetes): Ensure valid naming of name field (#1661)
- Kubernetes v1.26 on VKE causes error when creating persistent volume
claim because of uppercase characters in name field

This patch is trivial just in order to get it working - happy to
implement differently.

The error in question:

```
The PersistentVolumeClaim "wp-01G1131R63FWBSPMA4ZAZTKLE-0-clone-0" is invalid: metadata.name: Invalid value: "wp-01G1131R63FWBSPMA4ZAZTKLE-0-clone-0": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
```
2023-03-21 20:00:45 +01:00
Lauris BH 46452fbd84
Update Go dependencies and minimal Go version to 1.20 (#1650)
Signed-off-by: 6543 <6543@obermui.de>
Co-authored-by: 6543 <6543@obermui.de>
2023-03-21 00:48:15 +01:00
6543 0f6ce5c4e9
Bump xgo and go to v1.19.5 (#1538)
made possible again by:
- https://github.com/techknowlogick/xgo/pull/189
- https://github.com/techknowlogick/xgo/pull/193
2023-01-13 21:03:46 +01:00
6543 af69e03679
CI: pin xgo and go to v1.18.7 (#1439) 2022-11-23 08:01:38 +01:00
qwerty287 da7d13ad4e
Use native directory and run with Node 18 (#1337)
- replace `cd` with native key `directory` (#1329)
- Update Node images to 18
2022-10-25 14:51:29 +02:00
6543 f56d0812c7
Partially Revert "CI: add branches filter (#1130)"
This partially reverts commit f9dd6518c0.
2022-10-14 13:41:43 +02:00
6543 f9dd6518c0
CI: add branches filter (#1130)
Co-authored-by: Anbraten <anton@ju60.de>
2022-10-10 12:49:30 +02:00
qwerty287 9c12b321a1
Upload test-lib coverage results to codecov (#1227) 2022-10-01 11:51:04 +02:00
Lauris BH d5cdd2bb04
Add dependency security check using trivy (#1163) 2022-09-03 20:46:48 +02:00
6543 98e6396e3e
Publish preview container images of pulls (#1072)
* convert dryrun into preview

* nit: vendor first
2022-08-14 19:04:19 +02:00
6543 1e8d4cc455
Update jsonschema and pipeline linting 2022-07-19 15:09:39 +02:00
6543 8da0ee47f7
Use variables in pipeline (#1026)
use yaml aliases (https://yaml.org/spec/1.2.2/#3222-anchors-and-aliases) to have pipeline `variables`

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Anbraten <anton@ju60.de>
2022-07-17 18:25:56 +02:00
6543 08479390ff
Use editorconfig-checker (#982) 2022-06-17 12:03:34 +02:00
6543 17999da20f
Minim golang 1.18 and drop vendor folder (#979) 2022-06-17 01:57:02 +02:00
6543 d2aad473d7
Revert "hotfix to get no missmatch [1 & 2]" (#984)
This reverts commit 06f869beb3.
This reverts commit dbb5b4baa2.
2022-06-16 23:55:17 +02:00
6543 dbb5b4baa2
hotfix to get no missmatch 2022-06-16 23:00:24 +02:00
6543 fe006d9656
Revert "tmp: fix to make ci run agian"
This reverts commit e172b66d53.
2022-05-20 05:31:19 +02:00
6543 e172b66d53
tmp: fix to make ci run agian 2022-05-20 05:27:43 +02:00
6543 c986c7f5ee
CI add lint-pipeline (#921) 2022-05-17 17:59:51 +02:00
6543 e33fd13468
CI: bump golang version (#794) 2022-02-25 12:08:48 +01:00
Anbraten 4de9c014ea
fix codecov when (#743) 2022-02-04 10:45:04 +01:00
6543 7b2b884a0e
Add Codecov.io Upload (#660)
use https://github.com/woodpecker-ci/plugin-codecov to track code coverage on codecov.io
2022-02-01 19:34:56 +01:00
6543 95ce87fa1b
Fix path schema (#723)
- allow array for path
- remove "include:" as it is default case
- run tests on schema changes too
2022-01-29 14:26:00 +01:00
6543 062579d66f
Run pipeline for binary files on pull if go code changed (#722)
* run pipeline for binary files on pull if go code changed

* add release-dryrun

* run "test" only if go code changes

* fix-build-checksum
2022-01-29 13:58:55 +01:00
6543 c186e2fa8c
Update dev-docs & improve migration code (#670) 2022-01-08 20:21:22 +01:00
6543 0aefdc9978
Add tests framework for storage migration (#630)
* add test sqlite db

* migration tests for sqlite

* fix pipeline config

* fix tests to other dbms

* fix postgres & mysql
2021-12-20 16:15:21 +01:00
Anbraten 4642d98f2e
improve tests (#562) 2021-12-07 01:13:31 +01:00
Anbraten f32c20b650
Improve ci tests (#353)
* improve ci tests

* filter store

* improve ci configs

* fix create dir before accessing
2021-11-30 17:46:19 +01:00