aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
Commit message (Collapse)AuthorAgeFilesLines
* Use goproxy.io instead of goproxy.cn (#19242)Lunny Xiao2022-03-281-32/+32
|
* use go1.18 to build gitea (#19099)techknowlogick2022-03-161-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | * use go1.18 to build gitea& update min go version to 1.17 * bump in a few more places * add a few simple tests for isipprivate * update go.mod * update URL to https://go.dev/dl/ * golangci-lint * attempt golangci-lint workaround * change version * bump fumpt version * skip strings.title test * go mod tidy * update tests as some aren't private?? * update tests
* Use `go run` for tool dependencies, require go 1.17 (#18874)silverwind2022-03-151-2/+11
| | | | | | | | | | This ensures the tools only run in the versions we've tested and it also does not polute PATH with those tools so they are truly isolated. This syntax of `go run` requires go 1.17, so the minimum version is set accordingly. Fixes: https://github.com/go-gitea/gitea/issues/18867 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* allow overwrite artifacts for github releases (#18987)65432022-03-031-1/+2
|
* Reduce CI go module downloads, add make targets (#18708)silverwind2022-02-121-61/+194
| | | | | | | | | | | | | The CI currently downloads all go modules in each pipeline step because go modules reside outside the project directory. Fix this by introducing a volume for the `/go` directory [1] so modules are only downloaded once per pipeline using a new `deps-backend` make target. For completeness, I also included new `deps` and `deps-frontend` targets and the frontend one is also triggered explicitly on CI where needed. [1] https://docs.drone.io/pipeline/kubernetes/examples/language/golang/#dependencies
* Fix pushing to 1-x-dev docker tag (#18578)zeripath2022-02-031-0/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | * Fix pushing to 1-x-dev docker tag It appears that #18551 and #18573 have a mistake in that raymond does not have an {{else}} on {{#equal}}. This PR notes that Sprig has a hasPrefix function and so we use this with another if. Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix pushing to 1-x-dev docker tag (part 2) Although we now have the manifest working, we need to create the images. Here we adjust the .drone.yml to force building of the images Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix pushing to 1-x-dev docker tag OK now we have the images building we should make sure that the main ones stays dev and the release/v* ones become *-dev-* Signed-off-by: Andrew Thornton <art27@cantab.net> * Apply suggestions from code review
* Make docker gitea/gitea:v1.16-dev etc refer to the latest build on that ↵zeripath2022-02-031-0/+1
| | | | | | | | | | | | | | | | branch (#18551) * Make docker gitea/gitea:v1.16-dev etc refer to the latest build on that branch One of the problems with our current docker tagging is that although we have strict version tags, latest and dev we do not have a way for docker users to track the current release branch. This PR simply suggests that we use the 1.x-dev tag for these and we build and push these. This will give users who want or need unreleased bug fixes the option of tracking the pre-release version instead of simply jumping to dev. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* point to s3 endpoint directly (#18497)techknowlogick2022-01-311-3/+3
| | | Co-authored-by: 6543 <6543@obermui.de>
* upload to github & s3 at same time (#18475)techknowlogick2022-01-301-0/+4
|
* use next gen codecov uploader (#18443)65432022-01-301-1/+1
|
* Remove golang vendored directory (#18277)techknowlogick2022-01-141-24/+24
| | | | | | | * rm go vendor * fix drone yaml * add to gitignore
* no need for docker image mirror (#18031)techknowlogick2021-12-191-18/+0
| | | Co-authored-by: zeripath <art27@cantab.net>
* update xgo to use 1.17 (#17915)techknowlogick2021-12-051-2/+2
|
* Prepare and check test env during CI (#17725)wxiaoguang2021-11-191-14/+34
| | | | | | | | | | This PR should resolve the permission problems during CI, if the uid doesn't match, a more clear message is shown. * CI fails with unknown permission problems #17710 The new drone step dependencies: (root)prepare-test-env -> (gitea)build -> (gitea)test
* Add protection to disable Gitea when run as root (#17168)techknowlogick2021-10-071-3/+21
| | | | Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: 6543 <6543@obermui.de>
* CI: migrate from 'plugins/s3:1' to 'woodpeckerci/plugin-s3:latest' (#17234)65432021-10-061-3/+3
| | | | - this fixes the CI release upload issues, as the docker image for this is freshly built (unlike the mostly unmaintained "official" drone plugins), thus containing current CA certs needed for letsencrypt since 2021-09-31. - woodpecker is a drone-ci fork maintained partially by @6543. it's API compatible with current drone plugins afaik
* CI: rm unit-test-race step since its now coverd by unit-test too (#16856)65432021-08-291-11/+0
| | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Enable race detector for CI (#1441)Mura Li2021-08-261-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable race detector by default Set RACE_ENABLED=0 to disable it when release * Disable race detector for release builds * use `true` * fix * debug issue * fix * verbose * clean * Fix wrong merge * Fix coverage merge Co-authored-by: Mura Li <typeless@users.noreply.github.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* build with go1.17 (#16707)techknowlogick2021-08-171-11/+11
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Switch back to node 16 (#16624)zeripath2021-08-051-7/+7
| | | | | | | | | Now that node 16.6.1 is out we can (if desired) switch back to node 16. This PR proposes changing drone to run node:16 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Upgrade to golang-jwt 3.2.2 (#16590)zeripath2021-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Upgrade to golang-jwt 3.2.2 Upgrade to the latest version of golang-jwt Signed-off-by: Andrew Thornton <art27@cantab.net> * Forcibly replace the 3.2.1 version of golang-jwt/jwt and increase minimum Go version Using go.mod we can forcibly replace the 3.2.1 version used by goth to 3.2.2. Further given golang-jwt/jwts stated policy of only supporting supported go versions we should just raise our minimal version of go to 1.16 for 1.16 as by time of release 1.15 will be out of support. Signed-off-by: Andrew Thornton <art27@cantab.net> * update minimal go required Signed-off-by: Andrew Thornton <art27@cantab.net> * update config.yaml Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* [CI] Use node v14 instead of node v16 untill it will pass again (#16595)65432021-08-021-7/+7
| | | | | * for CI release: use node 14 (lts) to build until 16 do fail * all in for node v14.x
* Use node:16.5 for frontend instead of node:16 (#16591)zeripath2021-08-011-5/+5
| | | | | | | | | | | | | | | | | | | | | * Disable frontend testing Jest does not appear to work on the latest node 16.6.0 and fails with an inscrutable message. I have been unable to work out what the problem is. This PR simply disables the test-frontend part in the makefile. Another alternative would be to drop node to node 14 - which is the LTS for node. Signed-off-by: Andrew Thornton <art27@cantab.net> * actually just tell on 16.5 instead Signed-off-by: Andrew Thornton <art27@cantab.net> * Use node 16.5 instead of 16 Signed-off-by: Andrew Thornton <art27@cantab.net>
* CI: Add unit-test-race (#16470)65432021-07-171-0/+11
|
* revert to use alpine 3.13 (#16451)techknowlogick2021-07-161-1/+1
| | | Co-authored-by: zeripath <art27@cantab.net>
* Change docker tag logic (#16421)techknowlogick2021-07-141-6/+179
| | | | | | | | | | | | | * Change docker logic * Apply suggestions from code review Co-authored-by: Kyle D. <kdumontnu@gmail.com> * docs Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Kyle D. <kdumontnu@gmail.com>
* Replace `plugins/docker` with `techknowlogick/drone-docker`in ci (#16407)65432021-07-121-5/+5
| | | | | * plugins/docker -> techknowlogick/drone-docker * It is multi-arch
* Alpine 3.14 released (#16170)techknowlogick2021-07-071-1/+1
| | | | Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* Run compliance on amd64 infra (#16232)techknowlogick2021-06-231-4/+4
| | | | | * Run compliance on amd64 infra * Update .drone.yml
* Bump `postgres` and `mysql` versions (#15710)Patrick Schratz2021-05-211-2/+2
| | | | | | | | * bump postgres and mysql DB versions * posgres test against v10 Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Use node 16 on release tasks too (#15936)silverwind2021-05-201-2/+2
| | | Forgot these in https://github.com/go-gitea/gitea/pull/15804.
* Update JS dependencies, use Node 16 (#15804)silverwind2021-05-131-5/+5
| | | | | | | | - Update all JS dependencies to latest version - Use Node 16 on CI - Add new lint rules - Add some gitignore entries for debug files Co-authored-by: Lauris BH <lauris@nix.lv>
* change s3 bucket name (#15847)techknowlogick2021-05-121-3/+3
|
* point appleboy/drone-git-push to use updated primary branchtechknowlogick2021-05-101-0/+2
|
* update branch in CI and docs (#15631)techknowlogick2021-05-041-13/+13
|
* Stop packaging node_modules in release tarballs (#15273)silverwind2021-04-091-2/+2
| | | | | | | | | | | | | | | | | - Don't package node_modules in tarballs, they are not cross-platform anymore and npm cache should not be messed with directly. Instead, require an internet connection to rebuild the UI, which is not necessary in the general use case because prebuilt UI files are shipped in the public directory. - Simplify the fomantic build and make the target phony. We don't need anything more for something that is rarely ran. - Use regular tar again to build tarballs and add variable for excludes - Disable annoying npm update notifications Fixes: https://github.com/go-gitea/gitea/pull/14578 Fixes: https://github.com/go-gitea/gitea/pull/15256 Fixes: https://github.com/go-gitea/gitea/pull/15262 Co-authored-by: 6543 <6543@obermui.de>
* Add frontend testing, require node 12 (#15315)silverwind2021-04-081-1/+7
| | | | | | | | | | - Add basic frontend unit testing infrastructure using jest in ESM mode - Rename 'make test' to 'make test-backend' - Introduce 'make test-frontend' and 'make test' that runs both - Bump Node.js requirement to v12. v10 will be EOL in less than a month. - Convert all build-related JS files to ESM. I opted to run frontend tests run as part of the compliance pipeline because they complete fast and are not platform-specific like the golang tests.
* Introduce esbuild on webpack (#14578)Lunny Xiao2021-04-021-2/+2
| | | | | | | | | | | | | | | * Vendor node mods as cache; fix esbuild/fomantic offline build * Fix --exclude; use bsdtar for consistent globbing * Fall back to GNU tar; forward-compatible for APT 2.0 * Avoid having extd. attrs with bsdtar * Dependency and misc. optimizations * Remove extra code after esbuild-loader update Co-authored-by: Mike L <cl.jeremy@qq.com>
* chore: bump minio to RELEASE.2021-03-12T00-00-47Z (#15006)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2021-03-171-1/+1
| | | | | | | | | * chore: bump minio to RELEASE.2021-03-12T00-00-47Z - image: minio/minio:RELEASE.2021-01-16T02-19-44Z + image: minio/minio:RELEASE.2021-03-12T00-00-47Z Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <a_mirre@utb.cz>
* CI: pre install git last verson and git lfs in test (#14681)a10121127962021-03-121-18/+8
| | | | | | | | link: https://hub.docker.com/r/gitea/test_env Source: https://gitea.com/gitea/test_env/src/branch/master/Dockerfile Signed-off-by: a1012112796 <1012112796@qq.com>
* drone workspace pathtechknowlogick2021-02-281-4/+4
|
* drone workspace basetechknowlogick2021-02-281-0/+2
|
* use gomod support w/ xgo (#14836)techknowlogick2021-03-011-0/+6
|
* go1.16 (#14783)techknowlogick2021-02-281-62/+22
|
* Exclude running docker build on cron tasks (#14778)techknowlogick2021-02-231-0/+10
|
* CI: translation update as cron task (#14774)65432021-02-231-4/+4
|
* Use caddy's certmagic library for extensible/robust ACME handling (#14177)techknowlogick2021-01-251-2/+2
| | | | | | | | | | * use certmagic for more extensible/robust ACME cert handling * accept TOS based on config option Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* chore: bump minio to RELEASE.2021-01-16T02-19-44Z (#14445)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2021-01-241-1/+1
| | | | - image: minio/minio:RELEASE.2020-10-09T22-55-05Z + image: minio/minio:RELEASE.2021-01-16T02-19-44Z
* CI: skip build steps for cron update works (#14443)a10121127962021-01-241-0/+24
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* CI: Update license & gitignore by cron (#14419)a10121127962021-01-231-0/+39
| | | | | | | do generate-license & generate-gitignore by cron close #12684 Signed-off-by: a1012112796 <1012112796@qq.com>