Skip to content

Commit b9aa36f

Browse files
committed
Merge branch 'master' of git://github.com/go-gitea/gitea
2 parents 2ee876b + e7d4895 commit b9aa36f

File tree

135 files changed

+3811
-1386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+3811
-1386
lines changed

.drone.yml

Lines changed: 97 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ steps:
560560

561561
---
562562
kind: pipeline
563-
name: docker
563+
name: docker-linux-amd64
564564

565565
platform:
566566
os: linux
@@ -596,6 +596,7 @@ steps:
596596
settings:
597597
dry_run: true
598598
repo: gitea/gitea
599+
tags: linux-amd64
599600
when:
600601
event:
601602
- pull_request
@@ -605,6 +606,7 @@ steps:
605606
image: plugins/docker:linux-amd64
606607
settings:
607608
auto_tag: true
609+
auto_tag_suffix: linux-amd64
608610
repo: gitea/gitea
609611
password:
610612
from_secret: docker_password
@@ -615,6 +617,97 @@ steps:
615617
exclude:
616618
- pull_request
617619

620+
621+
622+
---
623+
kind: pipeline
624+
name: docker-linux-arm64
625+
626+
platform:
627+
os: linux
628+
arch: arm64
629+
630+
workspace:
631+
base: /go
632+
path: src/code.gitea.io/gitea
633+
634+
depends_on:
635+
- testing
636+
637+
trigger:
638+
ref:
639+
- refs/heads/master
640+
- "refs/tags/**"
641+
- "refs/pull/**"
642+
643+
steps:
644+
- name: fetch-tags
645+
pull: default
646+
image: docker:git
647+
commands:
648+
- git fetch --tags --force
649+
when:
650+
event:
651+
exclude:
652+
- pull_request
653+
654+
- name: dryrun
655+
pull: always
656+
image: plugins/docker:linux-arm64
657+
settings:
658+
dry_run: true
659+
repo: gitea/gitea
660+
tags: linux-arm64
661+
when:
662+
event:
663+
- pull_request
664+
665+
- name: publish
666+
pull: always
667+
image: plugins/docker:linux-arm64
668+
settings:
669+
auto_tag: true
670+
auto_tag_suffix: linux-arm64
671+
repo: gitea/gitea
672+
password:
673+
from_secret: docker_password
674+
username:
675+
from_secret: docker_username
676+
when:
677+
event:
678+
exclude:
679+
- pull_request
680+
681+
---
682+
kind: pipeline
683+
name: docker-manifest
684+
685+
platform:
686+
os: linux
687+
arch: amd64
688+
689+
steps:
690+
- name: manifest
691+
pull: always
692+
image: plugins/manifest
693+
settings:
694+
auto_tag: true
695+
ignore_missing: true
696+
spec: docker/manifest.tmpl
697+
password:
698+
from_secret: docker_password
699+
username:
700+
from_secret: docker_username
701+
702+
trigger:
703+
ref:
704+
- refs/heads/master
705+
- "refs/tags/**"
706+
707+
depends_on:
708+
- docker-linux-amd64
709+
- docker-linux-arm64
710+
618711
---
619712
kind: pipeline
620713
name: notify
@@ -637,7 +730,9 @@ depends_on:
637730
- translations
638731
- release-version
639732
- release-master
640-
- docker
733+
- docker-linux-amd64
734+
- docker-linux-arm64
735+
- docker-manifest
641736
- docs
642737

643738
steps:

docker/manifest.tmpl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
2+
{{#if build.tags}}
3+
tags:
4+
{{#each build.tags}}
5+
- {{this}}
6+
{{/each}}
7+
{{/if}}
8+
manifests:
9+
-
10+
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
11+
platform:
12+
architecture: amd64
13+
os: linux
14+
-
15+
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
16+
platform:
17+
architecture: arm64
18+
os: linux
19+
variant: v8

docs/content/doc/usage/reverse-proxies.en-us.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ In case you already have a site, and you want Gitea to share the domain name, yo
7171
<Proxy *>
7272
Order allow,deny
7373
Allow from all
74-
AllowEncodedSlashes NoDecode
7574
</Proxy>
76-
77-
ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port
78-
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
75+
AllowEncodedSlashes NoDecode
76+
# Note: no trailing slash after either /git or port
77+
ProxyPass /git http://localhost:3000 nocanon
78+
ProxyPassReverse /git http://localhost:3000
7979
</VirtualHost>
8080
```
8181

docs/content/doc/usage/reverse-proxies.zh-cn.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ server {
7272
<Proxy *>
7373
Order allow,deny
7474
Allow from all
75-
AllowEncodedSlashes NoDecode
7675
</Proxy>
77-
78-
ProxyPass /git http://localhost:3000 nocanon # Note: no trailing slash after either /git or port
79-
ProxyPassReverse /git http://localhost:3000 # Note: no trailing slash after either /git or port
76+
AllowEncodedSlashes NoDecode
77+
# Note: no trailing slash after either /git or port
78+
ProxyPass /git http://localhost:3000 nocanon
79+
ProxyPassReverse /git http://localhost:3000
8080
</VirtualHost>
8181
```
8282

go.mod

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module code.gitea.io/gitea
33
go 1.12
44

55
require (
6-
github.com/BurntSushi/toml v0.3.1 // indirect
76
github.com/PuerkitoBio/goquery v0.0.0-20170324135448-ed7d758e9a34
87
github.com/RoaringBitmap/roaring v0.4.7 // indirect
98
github.com/Unknwon/cae v0.0.0-20160715032808-c6aac99ea2ca
@@ -26,7 +25,7 @@ require (
2625
github.com/cznic/b v0.0.0-20181122101859-a26611c4d92d // indirect
2726
github.com/cznic/mathutil v0.0.0-20181122101859-297441e03548 // indirect
2827
github.com/cznic/strutil v0.0.0-20181122101858-275e90344537 // indirect
29-
github.com/denisenkom/go-mssqldb v0.0.0-20190121005146-b04fd42d9952
28+
github.com/denisenkom/go-mssqldb v0.0.0-20190724012636-11b2859924c1
3029
github.com/dgrijalva/jwt-go v3.2.0+incompatible
3130
github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712 // indirect
3231
github.com/emirpasic/gods v1.12.0
@@ -54,8 +53,7 @@ require (
5453
github.com/go-macaron/toolbox v0.0.0-20180818072302-a77f45a7ce90
5554
github.com/go-redis/redis v6.15.2+incompatible
5655
github.com/go-sql-driver/mysql v1.4.1
57-
github.com/go-xorm/core v0.6.0 // indirect
58-
github.com/go-xorm/xorm v0.7.3-0.20190620151208-f1b4f8368459
56+
github.com/go-xorm/xorm v0.7.4
5957
github.com/gogits/chardet v0.0.0-20150115103509-2404f7772561
6058
github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14
6159
github.com/google/go-cmp v0.3.0 // indirect
@@ -71,7 +69,7 @@ require (
7169
github.com/klauspost/compress v0.0.0-20161025140425-8df558b6cb6f
7270
github.com/klauspost/cpuid v0.0.0-20160302075316-09cded8978dc // indirect
7371
github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6 // indirect
74-
github.com/lafriks/xormstore v1.0.0
72+
github.com/lafriks/xormstore v1.1.0
7573
github.com/lib/pq v1.1.0
7674
github.com/lunny/dingtalk_webhook v0.0.0-20171025031554-e3534c89ef96
7775
github.com/lunny/levelqueue v0.0.0-20190217115915-02b525a4418e
@@ -128,11 +126,8 @@ require (
128126
gopkg.in/src-d/go-git.v4 v4.12.0
129127
gopkg.in/stretchr/testify.v1 v1.2.2 // indirect
130128
gopkg.in/testfixtures.v2 v2.5.0
131-
gopkg.in/yaml.v2 v2.2.2 // indirect
132129
mvdan.cc/xurls/v2 v2.0.0
133130
strk.kbt.io/projects/go/libravatar v0.0.0-20160628055650-5eed7bff870a
134131
xorm.io/builder v0.3.5
135132
xorm.io/core v0.6.3
136133
)
137-
138-
replace github.com/denisenkom/go-mssqldb => github.com/denisenkom/go-mssqldb v0.0.0-20180315180555-6a30f4e59a44

0 commit comments

Comments
 (0)