techknowlogick
59d132f0b3
Set safe dir for git operations in .drone.yml CI ( #19641 ) ( #19643 )
...
Our drone by necessity runs on git repositories not owned by the drone process. Unfortunately this means that git operations and thence CI builds will fail without the `safe.directory` option being set.
See: https://drone.gitea.io/go-gitea/gitea/54632/2/8
2022-05-06 14:09:54 -04:00
techknowlogick and zeripath
9cc93c05cd
Unset git author/committer variables when running integration tests ( #19512 ) ( #19519 )
...
TestAPIGitTag (and likely others) will fail if the running environment contains
GIT_AUTHOR_NAME and other env variables like it.
This PR simply unsets these when running the integration tests.
Fix #14247
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: zeripath <art27@cantab.net >
2022-04-26 19:23:54 -04:00
techknowlogick
b461993775
go get -u crypto ( #19388 )
2022-04-12 22:45:58 -04:00
f9ea4ab69a
Bump to build with go1.18 ( #19120 et al) ( #19127 )
...
Backport #19120
Backport #19099
Backport #18874
Backport #18420
Backport #19128
Backport #18270
Bump to build with go1.18
Co-authored-by: techknowlogick <techknowlogick@gitea.io >
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Jelle Hulter <jellehulter@gmail.com >
2022-03-19 18:46:47 +01:00
techknowlogick
edd57028a1
point to s3 endpoint directly ( #18497 ) ( #18510 )
2022-01-31 17:50:41 -05:00
4a6bae59c0
Changelog for 1.16.0-rc1 ( #18309 )
...
Co-authored-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Lauris BH <lauris@nix.lv >
Co-authored-by: 6543 <6543@obermui.de >
2022-01-19 18:08:23 +01:00
techknowlogick
84145e45c5
Remove golang vendored directory ( #18277 )
...
* rm go vendor
* fix drone yaml
* add to gitignore
2022-01-14 18:16:05 -05:00
techknowlogick
d8ae769dda
update docker image to latest go version ( #18048 )
2021-12-20 22:11:10 -05:00
techknowlogick and zeripath
b24a965b81
no need for docker image mirror ( #18031 )
...
Co-authored-by: zeripath <art27@cantab.net >
2021-12-19 16:53:15 -05:00
techknowlogick
6255ff8c6b
update xgo to use 1.17 ( #17915 )
2021-12-05 19:48:38 -05:00
techknowlogick
2dae5b715c
Fix keys test ( #17776 )
2021-11-23 08:12:02 +00:00
techknowlogick
499b05da22
Add user settings key/value DB table ( #16834 )
2021-11-22 04:47:23 -05:00
techknowlogick
3397fee9fa
api: integration test for nodeinfo ( #17346 )
2021-10-18 01:36:56 -04:00
techknowlogick
db895040dd
Use go1.16+ way of installing binaries ( #17342 )
2021-10-17 18:57:15 -04:00
8edda8b446
Add simple update checker to Gitea ( #17212 )
...
* Add simple update checker to Gitea
* update struct and remove comments
* fix lint
* Update custom/conf/app.example.ini
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-authored-by: delvh <dev.lh@web.de >
* Update custom/conf/app.example.ini
Co-authored-by: delvh <dev.lh@web.de >
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-authored-by: delvh <dev.lh@web.de >
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-authored-by: Steven <61625851+justusbunsi@users.noreply.github.com >
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
* Update modules/cron/tasks_extended.go
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
* Update custom/conf/app.example.ini
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
* take PR feedback into account and display banner on admin dashboard for alerts
* Add more detailed message
* placate lint
* update per feedback
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Steven <61625851+justusbunsi@users.noreply.github.com >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2021-10-16 02:14:34 -04:00
techknowlogick
ee73d8409f
changelog for 1.15.4 (frontport) ( #17273 )
2021-10-08 22:51:57 +01:00
f0bd1e9896
Add protection to disable Gitea when run as root ( #17168 )
...
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: 6543 <6543@obermui.de >
2021-10-07 10:52:08 +02:00
e9a9c20d52
Create pub/priv keypair for federation ( #17071 )
...
* add logic for creating pub/priv keypair for federation
* Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de >
* make fmt
* Update modules/activitypub/keypair.go
Co-authored-by: delvh <dev.lh@web.de >
* add tests
* fix revert
* more tests
* Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de >
* make fmt
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: 6543 <6543@obermui.de >
2021-09-28 15:19:22 -04:00
techknowlogick
babab0bf5e
Add nodeinfo endpoint for federation purposes ( #16953 )
...
Nodeinfo is a way to expose certain metadata about a server for use of discovery regarding functionality of its federation capabilities.
Two endpoints are required:
1. `/.well-known/nodeinfo` which informs client where it can find the location of the location of its metadata (including which version of the schema is used)
2. the endpoint which exposes the metadata in json format according to schema.
Notes:
* `openRegistrations` is a required field, but I propose to set to false as default in case someone writes a crawler to discover "open" gitea instances
* to limit data leakage I also propose to not include the `usage` field (note it is required so it should be included, but left as empty).
More info:
https://github.com/jhass/nodeinfo
https://github.com/jhass/nodeinfo/tree/main/schemas/2.1
http://nodeinfo.diaspora.software/protocol.html
2021-09-28 01:38:06 +02:00
techknowlogick
aa631d8cd1
update docs to 1.15.3
2021-09-21 21:38:04 -04:00
techknowlogick
22c73278bc
update docs to 1.15.2
2021-09-03 13:49:06 -04:00
techknowlogick
db1e3d02a5
frontport: 1.15.0 changelog ( #16772 )
...
* frontport: 1.15.0 changelog
* Update config.yaml
2021-08-22 20:29:51 +01:00
techknowlogick and Lauris BH
274aeb3a9e
build with go1.17 ( #16707 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
2021-08-17 08:31:28 -04:00
techknowlogick
37d0d94843
Use github token URL when fetching oauth token ( #16709 )
...
Fixes regression from #16544
2021-08-17 09:07:52 +01:00
techknowlogick
620c5690ea
Add note about build-time flags for PAM support ( #16641 )
...
Fix #16639
2021-08-07 01:22:30 -04:00
techknowlogick and zeripath
e0f9635c06
Add Linode as an installation option in docs ( #16529 )
...
Add Linode as an installation option in docs
Co-authored-by: zeripath <art27@cantab.net >
2021-07-24 15:08:23 +01:00
techknowlogick
5a84908d42
Add snap to docs ( #16530 )
2021-07-24 14:06:38 +01:00
29a22ade82
switch to maintained lib ( #16532 )
...
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Andrew Thornton <art27@cantab.net >
2021-07-24 13:00:41 +02:00
techknowlogick and zeripath
7b31aae414
revert to use alpine 3.13 ( #16451 )
...
Co-authored-by: zeripath <art27@cantab.net >
2021-07-16 09:54:39 +08:00
techknowlogick
ff69dfff7a
microbadger is no more, rm from readme ( #16440 )
...
* microbadger is no more, rm from readme
* Update README_ZH.md
2021-07-15 13:08:20 -04:00
techknowlogick
376fc350ee
add note about minimum required version of git installed ( #16433 )
2021-07-14 23:28:49 -04:00
e180456983
Change docker tag logic ( #16421 )
...
* 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 >
2021-07-14 18:08:43 +01:00
061a8e7bb9
Alpine 3.14 released ( #16170 )
...
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: zeripath <art27@cantab.net >
2021-07-07 15:43:00 -04:00
techknowlogick
7613f31c6b
Update vendor 20210707 ( #16366 )
...
* update gitea.com/go-chi/binding
* update github.com/blevesearch/bleve/v2
* update github.com/caddyserver/certmagic
* update github.com/go-git/go-git/v5
* update github.com/lafriks/xormstore
* update github.com/yuin/goldmark
* Revert "update gitea.com/go-chi/binding"
This reverts commit dea2f292b1 .
2021-07-07 15:41:05 -04:00
techknowlogick
4f26e0ac0e
up current stable version in docs ( #16318 )
2021-06-30 16:27:09 -04:00
8640717f5f
Add docs for windows env vars ( #16236 )
...
* Add docs for windows env vars
Fix #16213
* Fix docs/content/doc/developers/hacking-on-gitea.en-us.md
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2021-06-23 15:57:56 -04:00
techknowlogick
d4ae87ea32
Run compliance on amd64 infra ( #16232 )
...
* Run compliance on amd64 infra
* Update .drone.yml
2021-06-23 01:36:27 -04:00
techknowlogick
568fe8c595
follow redirect when fetching theme archive ( #15986 )
2021-05-26 18:03:39 -04:00
techknowlogick
ffbd0fef06
change s3 bucket name ( #15847 )
2021-05-12 15:08:33 -04:00
techknowlogick
2dc3e4edc8
point appleboy/drone-git-push to use updated primary branch
2021-05-10 20:27:56 -04:00
techknowlogick
ab77a24f18
update branch in CI and docs ( #15631 )
2021-05-04 12:16:23 -04:00
techknowlogick and Lunny Xiao
ea40eb749b
Resolve panic on failed interface conversion in migration v156 ( #15604 )
...
go panics otherwise with `panic: interface conversion: error is git.ErrNotExist, not *git.ErrNotExist`, thanks to Codeberg/Andi for reporting this.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-04-24 11:14:39 +08:00
techknowlogick and Lunny Xiao
c29e85228f
frontport: 1.14.1 changelog ( #15503 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-04-16 00:06:02 -04:00
024ef3940f
add well-known config for OIDC ( #15355 )
...
* add well-known config for OIDC
* spacing per feedback
* Update oidc_wellknown.tmpl
* add id_token
* Update oidc_wellknown.tmpl
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2021-04-15 22:32:00 -04:00
26e16e4ee4
docs: rm deprecated docs regarding environment variable usage in docker image ( #15405 )
...
* docs: rm deprecated docs regarding environment variable usage in docker image
* Update docs/content/doc/installation/with-docker.en-us.md
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: silverwind <me@silverwind.io >
2021-04-12 15:42:02 -04:00
techknowlogick
70d84f9b73
update golang libraries ( #15258 )
2021-04-03 11:02:27 +08:00
techknowlogick
5ad65c8f5d
update docs to reference 1.13.6 ( #15182 )
2021-03-28 11:09:01 +08:00
techknowlogick
b175791665
build darwin on arm64 platforms ( #14951 )
...
fix #14945
2021-03-10 23:59:57 -05:00
techknowlogick
faf775c552
drone workspace path
2021-02-28 23:57:58 -05:00
techknowlogick
1e95b389c0
drone workspace base
2021-02-28 23:25:09 -05:00
techknowlogick
d801a158c5
use gomod support w/ xgo ( #14836 )
2021-03-01 11:43:55 +08:00
techknowlogick
47f6a4ec3f
go1.16 ( #14783 )
2021-02-28 18:08:33 -05:00
techknowlogick
428d0edcb0
Exclude running docker build on cron tasks ( #14778 )
2021-02-23 04:55:35 +01:00
techknowlogick
1f570f2208
build for only available darwin target ( #14771 )
2021-02-22 08:44:54 -05:00
techknowlogick and 6543
ce0346448f
remove outdated notice in makefile ( #14720 )
...
Co-authored-by: 6543 <6543@obermui.de >
2021-02-17 21:48:12 -05:00
techknowlogick and 6543
a3cc842e15
Show Gitea version in swagger ( #14654 )
...
Show Gitea version in swagger
Co-authored-by: 6543 <6543@obermui.de >
2021-02-12 21:51:56 +01:00
techknowlogick
9b6ff819d7
update docs to show latest stable version (1.13.2) ( #14550 )
2021-02-03 08:46:42 +01:00
d2ea21d0d8
Use caddy's certmagic library for extensible/robust ACME handling ( #14177 )
...
* 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 >
2021-01-25 01:37:35 +02:00
techknowlogick
62643d94a3
Update golangci-lint to 1.35.2 ( #14418 )
2021-01-21 17:14:23 -05:00
techknowlogick
b708968694
upgrade to alpine 3.13 ( #14343 )
2021-01-20 05:21:01 +01:00
techknowlogick
954aeefb05
Update Link
2021-01-13 10:55:52 -05:00
techknowlogick and Lunny Xiao
d1581a4563
Add compliance check for windows to ensure cross platform build ( #14260 )
...
* 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 >
2021-01-05 21:16:37 -05:00
techknowlogick and zeripath
4f2f08bd80
deprecate building for mips ( #14174 )
...
Co-authored-by: zeripath <art27@cantab.net >
2021-01-01 23:22:32 +08:00
techknowlogick
c9b9b462d2
Update owners for 2021 ( #14206 )
...
Fix #13801
2021-01-01 01:41:03 +02:00
techknowlogick and zeripath
9164ff7791
frontport 1.13.1 changelog ( #14175 )
...
* frontport 1.13.1 changelog
* Update config.yaml
Co-authored-by: zeripath <art27@cantab.net >
2020-12-28 19:38:44 -05:00
techknowlogick and zeripath
e0a84d7880
dep: update crypto. info: https://golangtutorial.dev/news/fix-in-crypto-package/ ( #14067 )
...
Co-authored-by: zeripath <art27@cantab.net >
2020-12-20 17:36:07 +02:00
techknowlogick and 6543
f8a668ab0c
Clean up SVG ( #13680 )
...
* Clean up SVG
* update per feedback
* fix css style
* Delete gitea.png
* no new line at end of file
* fix newline?
Co-authored-by: 6543 <6543@obermui.de >
2020-12-17 16:33:53 -05:00
techknowlogick and silverwind
88b585c2e0
Store repository data in data path if not previously set ( #13991 )
...
* Store repository data in data path if not previously set
* update docs
* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md
Co-authored-by: silverwind <me@silverwind.io >
* update docs
Co-authored-by: silverwind <me@silverwind.io >
2020-12-15 16:52:59 -05:00
techknowlogick
9b22ada0a7
Self-host cloudron image for docs ( #13895 )
...
* Add cloudron image to docs itself
* rm cloudron csp
* Update from-package.en-us.md
2020-12-07 22:20:37 -05:00
techknowlogick
9c71c6c4a5
Add link to shop in docs ( #13864 )
...
Replaced link to code.gitea.io as that subdomain isn't meant for human consumption, but rather for our vanity go import URLs
Only replaced link for english, open to adding links for other languages if anyone is able/willing to add them
2020-12-05 17:34:29 -05:00
techknowlogick
fd1c3519c3
frontport 1.13.0 changelog ( #13790 )
2020-12-02 11:39:22 -05:00
techknowlogick
64bd5f4c66
specific version in docker compose ( #13644 )
...
* specific version in docker compose
fix #13643
* update latest version
2020-11-19 11:36:48 -05:00
techknowlogick and zeripath
8a7101fdd3
Add note about installation on kubernetes to docs ( #13469 )
...
Co-authored-by: zeripath <art27@cantab.net >
2020-11-08 15:50:40 -05:00
techknowlogick and Lauris BH
c178a36438
use registry mirror for docker-in-docker ( #13438 )
...
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-11-06 02:35:10 -05:00
techknowlogick
543697e61e
Set auto-tag to false on rootless manifest ( #13383 )
...
Current overrides rootful container
2020-11-01 11:30:01 +00:00
techknowlogick
76ac83402b
Clean up mysql service in drone ( #13145 )
2020-10-14 17:44:18 -04:00
techknowlogick
e00e8d8ad3
Disable Git Hooks by default ( #13064 )
...
* Disable Git Hooks by default
Related #13058
* pass tests
2020-10-07 14:24:14 -04:00
techknowlogick
77f3dbed6d
latest version is 1.12.5 ( #13005 )
2020-10-01 15:21:25 -04:00
techknowlogick and zeripath
156f54d6e2
allow U2F with default settings for gitea in subpath ( #12990 )
...
* allow U2F with default settings for gitea in subpath
* use trim suffix
Co-authored-by: zeripath <art27@cantab.net >
2020-10-01 20:49:49 +08:00
techknowlogick
1c3278c2fa
update revive lint to latest commit ( #12921 )
...
* update revive lint to latest commit
* make fmt
* change import
2020-09-22 20:02:16 +03:00
techknowlogick
33ac0cc125
Set language via AJAX ( #12785 )
...
* Set language via AJAX
* fix lint
2020-09-10 09:09:23 +08:00
techknowlogick
e4b3f35b8d
Removing k8s contrib file ( #12761 )
...
We now have a helm chart that users should use instead
2020-09-07 23:22:55 -04:00
techknowlogick and Andrew Thornton
9a17e2830b
refactor repo_stats to use os.pipe ( #11726 )
...
* refactor repo_stats to use os.pipe
* woops. missing reader.
* stdout not stderr, woops
* Fix copyright date and ensure that the stderr is collected
Signed-off-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Andrew Thornton <art27@cantab.net >
2020-09-05 16:12:14 -04:00
techknowlogick
bab1204db4
Use pre-built hugo binary in release step ( #12725 )
...
* Use pre-built hugo binary in release step
* decrease verbosity of tar
2020-09-05 07:24:36 +01:00
techknowlogick
144de79c1b
Add details re: Kanban ( #12721 )
2020-09-04 18:46:21 -04:00
techknowlogick and zeripath
482b0e6d47
Bump min required golang to 1.13 ( #12717 )
...
* Bump min required golang to 1.13
* Update config.yaml
* Update Makefile
* per silverwind feedback
* per silverwind
Co-authored-by: zeripath <art27@cantab.net >
2020-09-04 14:12:01 -04:00
c5d5d63c9c
Macaron 1.5 ( #12596 )
...
* update macaron to v1.5 of fork
* update macaron to v1.5 of fork
* test gzip PR
* add push method impl to context_tests
* use proper gzip commit
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2020-08-27 22:47:17 -04:00
techknowlogick
e90e122b39
update to latest golangci-lint (v1.30.0) ( #12597 )
2020-08-25 09:24:37 +03:00
techknowlogick and John Olheiser
019e577d54
Update JWT docs in example config ( #12591 )
...
* Update JWT docs in example config
align with way we have `LFS_JWT_SECRET` in config
Fix #12590
* Update custom/conf/app.example.ini
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2020-08-24 17:49:26 -04:00
techknowlogick
125ffb87f0
go1.15 on windows ( #12589 )
...
* go1.15 on windows
* update xgo to use node14
2020-08-24 17:46:41 -04:00
techknowlogick
1ca652c826
Add security policy to repo ( #12536 )
2020-08-19 17:15:55 +01:00
techknowlogick
eb60a5d054
Build windows using golang 1.14 ( #12489 )
2020-08-13 22:29:00 -04:00
techknowlogick
8a0049bb03
go-sqlite3 gomod version ( #12490 )
2020-08-14 09:54:46 +08:00
techknowlogick
b37c7dd384
Build windows using golang 1.14 ( #12489 )
2020-08-13 21:18:04 -04:00
techknowlogick
c9d1e40dfc
UI: Update commit signature view ( #12473 )
2020-08-13 10:54:54 -04:00
techknowlogick and Lauris BH
bd7d6a3d73
go1.15 ( #12475 )
...
* go1.15
* update makefile xgo version
* fix vet issue
* update docs to version of go in use
* add TODO for asyncpreemptoff
Co-authored-by: Lauris BH <lauris@nix.lv >
2020-08-13 10:11:24 -04:00
techknowlogick and John Olheiser
22c952ac7a
Make dashboard newsfeed list length a configurable item ( #12469 )
...
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2020-08-11 10:48:13 -04:00
techknowlogick
0cc21fb72d
use community codecov drone plugin ( #12468 )
2020-08-10 22:02:09 -04:00
techknowlogick and zeripath
6ab4d76ced
Match GH with Commit page ( #12425 )
...
Co-authored-by: zeripath <art27@cantab.net >
2020-08-05 09:32:13 +08:00
techknowlogick
bfb25e4be1
update chroma to v0.8.0 ( #12337 )
2020-07-27 13:18:02 -04:00