aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* upgrade to alpine 3.13 (#14343)techknowlogick2021-01-201-1/+1
|
* Add compliance check for windows to ensure cross platform build (#14260)techknowlogick2021-01-051-0/+12
| | | | | | | | | * Add compliance check for windows to ensure cross platform build * no race condition * woops. meant to change windows, not arm64 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix windows build error (#14263)Lunny Xiao2021-01-061-0/+12
| | | | | | | | | | | * fix build * take flash error message back and fix more windows lint error * performance optimization * own step to check lint for windows Co-authored-by: 6543 <6543@obermui.de>
* Use native git variants by default with go-git variants as build tag (#13673)zeripath2020-12-171-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move last commit cache back into modules/git Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove go-git from the interface for last commit cache Signed-off-by: Andrew Thornton <art27@cantab.net> * move cacheref to last_commit_cache Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove go-git from routers/private/hook Signed-off-by: Andrew Thornton <art27@cantab.net> * Move FindLFSFiles to pipeline Signed-off-by: Andrew Thornton <art27@cantab.net> * Make no-go-git variants Signed-off-by: Andrew Thornton <art27@cantab.net> * Submodule RefID Signed-off-by: Andrew Thornton <art27@cantab.net> * fix issue with GetCommitsInfo Signed-off-by: Andrew Thornton <art27@cantab.net> * fix GetLastCommitForPaths Signed-off-by: Andrew Thornton <art27@cantab.net> * Improve efficiency Signed-off-by: Andrew Thornton <art27@cantab.net> * More efficiency Signed-off-by: Andrew Thornton <art27@cantab.net> * even faster Signed-off-by: Andrew Thornton <art27@cantab.net> * Reduce duplication * As per @lunny Signed-off-by: Andrew Thornton <art27@cantab.net> * attempt to fix drone Signed-off-by: Andrew Thornton <art27@cantab.net> * fix test-tags Signed-off-by: Andrew Thornton <art27@cantab.net> * default to use no-go-git variants and add gogit build tag Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @6543 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Reduce number of docker pulls on ci (#13739)silverwind2020-11-281-26/+0
| | | | | | Should reduce errors like https://drone.gitea.io/go-gitea/gitea/32989/7/2 by only pulling each distinct image once per pipeline. Co-authored-by: zeripath <art27@cantab.net>
* use registry mirror for docker-in-docker (#13438)techknowlogick2020-11-061-0/+12
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* fix docker rootless manifest (#13386)Antoine GIRARD2020-11-021-1/+1
|
* Set auto-tag to false on rootless manifest (#13383)techknowlogick2020-11-011-5/+6
| | | Current overrides rootful container
* docker: rootless image (#10154)Antoine GIRARD2020-10-311-0/+49
| | | | | | | | | * docker: rootless image * improve docs + remove check for write perm on custom * add more info on ssh passtrough * Add comment for internal ssh server in container config
* Clean up mysql service in drone (#13145)techknowlogick2020-10-141-12/+0
|
* chore: update minio image version (#13109)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2020-10-121-1/+1
| | | * 2020-05-16 --> 2020-10-09
* Bump min required golang to 1.13 (#12717)techknowlogick2020-09-041-1/+1
| | | | | | | | | | | | | * Bump min required golang to 1.13 * Update config.yaml * Update Makefile * per silverwind feedback * per silverwind Co-authored-by: zeripath <art27@cantab.net>
* Support elastic search for code search (#10273)Lunny Xiao2020-08-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | * Support elastic search for code search * Finished elastic search implementation and add some tests * Enable test on drone and added docs * Add new fields to elastic search * Fix bug * remove unused changes * Use indexer alias to keep the gitea indexer version * Improve codes * Some code improvements * The real indexer name changed to xxx.v1 Co-authored-by: zeripath <art27@cantab.net>
* go1.15 on windows (#12589)techknowlogick2020-08-241-15/+4
| | | | | * go1.15 on windows * update xgo to use node14