Skip to content

Commit 6f8a46d

Browse files
authored
Merge branch 'master' into mobile-tabs
2 parents 226df54 + f878c82 commit 6f8a46d

File tree

1,177 files changed

+30052
-8151
lines changed

Some content is hidden

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

1,177 files changed

+30052
-8151
lines changed

.drone.yml

Lines changed: 40 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ platform:
66
os: linux
77
arch: arm64
88

9-
workspace:
10-
base: /go
11-
path: src/code.gitea.io/gitea
12-
139
trigger:
1410
event:
1511
- push
@@ -31,7 +27,7 @@ steps:
3127

3228
- name: lint-backend
3329
pull: always
34-
image: golang:1.15
30+
image: golang:1.16
3531
commands:
3632
- make lint-backend
3733
environment:
@@ -41,7 +37,7 @@ steps:
4137

4238
- name: lint-backend-windows
4339
pull: always
44-
image: golang:1.15
40+
image: golang:1.16
4541
commands:
4642
- make golangci-lint vet
4743
environment:
@@ -53,7 +49,7 @@ steps:
5349

5450
- name: lint-backend-gogit
5551
pull: always
56-
image: golang:1.15
52+
image: golang:1.16
5753
commands:
5854
- make lint-backend
5955
environment:
@@ -69,7 +65,7 @@ steps:
6965

7066
- name: checks-backend
7167
pull: always
72-
image: golang:1.15
68+
image: golang:1.16
7369
commands:
7470
- make checks-backend
7571
depends_on: [lint-backend]
@@ -91,7 +87,7 @@ steps:
9187
depends_on: [checks-backend]
9288

9389
- name: build-backend-arm64
94-
image: golang:1.15
90+
image: golang:1.16
9591
environment:
9692
GO111MODULE: on
9793
GOPROXY: off
@@ -104,7 +100,7 @@ steps:
104100
depends_on: [checks-backend]
105101

106102
- name: build-backend-windows
107-
image: golang:1.15
103+
image: golang:1.16
108104
environment:
109105
GO111MODULE: on
110106
GOPROXY: off
@@ -116,7 +112,7 @@ steps:
116112
depends_on: [checks-backend]
117113

118114
- name: build-backend-386
119-
image: golang:1.15
115+
image: golang:1.16
120116
environment:
121117
GO111MODULE: on
122118
GOPROXY: off
@@ -143,10 +139,6 @@ trigger:
143139
- tag
144140
- pull_request
145141

146-
workspace:
147-
base: /go
148-
path: src/code.gitea.io/gitea
149-
150142
services:
151143
- name: mysql
152144
image: mysql:5.7
@@ -195,7 +187,7 @@ steps:
195187

196188
- name: build
197189
pull: always
198-
image: golang:1.15
190+
image: golang:1.16
199191
commands:
200192
- make backend
201193
environment:
@@ -210,7 +202,7 @@ steps:
210202
- git update-ref refs/heads/tag_test ${DRONE_COMMIT_SHA}
211203

212204
- name: unit-test
213-
image: golang:1.15
205+
image: golang:1.16
214206
commands:
215207
- make unit-test-coverage test-check
216208
environment:
@@ -221,7 +213,7 @@ steps:
221213

222214
- name: unit-test-gogit
223215
pull: always
224-
image: golang:1.15
216+
image: golang:1.16
225217
commands:
226218
- make unit-test-coverage test-check
227219
environment:
@@ -231,7 +223,7 @@ steps:
231223
from_secret: github_read_token
232224

233225
- name: test-mysql
234-
image: golang:1.15
226+
image: golang:1.16
235227
commands:
236228
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
237229
- apt-get install -y git-lfs
@@ -246,7 +238,7 @@ steps:
246238
- build
247239

248240
- name: test-mysql8
249-
image: golang:1.15
241+
image: golang:1.16
250242
commands:
251243
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
252244
- apt-get install -y git-lfs
@@ -260,7 +252,7 @@ steps:
260252
- build
261253

262254
- name: test-mssql
263-
image: golang:1.15
255+
image: golang:1.16
264256
commands:
265257
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
266258
- apt-get install -y git-lfs
@@ -274,7 +266,7 @@ steps:
274266
- build
275267

276268
- name: generate-coverage
277-
image: golang:1.15
269+
image: golang:1.16
278270
commands:
279271
- make coverage
280272
environment:
@@ -324,10 +316,6 @@ trigger:
324316
- tag
325317
- pull_request
326318

327-
workspace:
328-
base: /go
329-
path: src/code.gitea.io/gitea
330-
331319
services:
332320
- name: pgsql
333321
pull: default
@@ -352,16 +340,16 @@ steps:
352340

353341
- name: build
354342
pull: always
355-
image: golang:1.15
343+
image: golang:1.16
356344
commands:
357345
- make backend
358346
environment:
359347
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
360348
GOSUMDB: sum.golang.org
361-
TAGS: bindata sqlite sqlite_unlock_notify
349+
TAGS: bindata gogit sqlite sqlite_unlock_notify
362350

363351
- name: test-sqlite
364-
image: golang:1.15
352+
image: golang:1.16
365353
commands:
366354
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
367355
- apt-get install -y git-lfs
@@ -375,7 +363,7 @@ steps:
375363
- build
376364

377365
- name: test-pgsql
378-
image: golang:1.15
366+
image: golang:1.16
379367
commands:
380368
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
381369
- apt-get install -y git-lfs
@@ -391,21 +379,19 @@ steps:
391379

392380
---
393381
kind: pipeline
394-
name: translations
382+
name: update_translations
395383

396384
platform:
397385
os: linux
398386
arch: arm64
399387

400-
workspace:
401-
base: /go
402-
path: src/code.gitea.io/gitea
403-
404388
trigger:
405389
branch:
406390
- master
407391
event:
408-
- push
392+
- cron
393+
cron:
394+
- update_translations
409395

410396
steps:
411397
- name: download
@@ -457,11 +443,7 @@ name: update_gitignore_and_licenses
457443

458444
platform:
459445
os: linux
460-
arch: amd64
461-
462-
workspace:
463-
base: /go
464-
path: src/code.gitea.io/gitea
446+
arch: arm64
465447

466448
trigger:
467449
branch:
@@ -473,7 +455,7 @@ trigger:
473455

474456
steps:
475457
- name: download
476-
image: golang:1.15
458+
image: golang:1.16
477459
commands:
478460
- timeout -s ABRT 40m make generate-license generate-gitignore
479461

@@ -499,8 +481,8 @@ platform:
499481
arch: amd64
500482

501483
workspace:
502-
base: /go
503-
path: src/code.gitea.io/gitea
484+
base: /source
485+
path: /
504486

505487
trigger:
506488
branch:
@@ -512,7 +494,6 @@ trigger:
512494
depends_on:
513495
- testing-amd64
514496
- testing-arm64
515-
- translations
516497

517498
steps:
518499
- name: fetch-tags
@@ -522,7 +503,7 @@ steps:
522503

523504
- name: static
524505
pull: always
525-
image: techknowlogick/xgo:go-1.15.x
506+
image: techknowlogick/xgo:go-1.16.x
526507
commands:
527508
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
528509
- export PATH=$PATH:$GOPATH/bin
@@ -598,8 +579,8 @@ platform:
598579
arch: amd64
599580

600581
workspace:
601-
base: /go
602-
path: src/code.gitea.io/gitea
582+
base: /source
583+
path: /
603584

604585
trigger:
605586
event:
@@ -618,7 +599,7 @@ steps:
618599

619600
- name: static
620601
pull: always
621-
image: techknowlogick/xgo:go-1.15.x
602+
image: techknowlogick/xgo:go-1.16.x
622603
commands:
623604
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
624605
- export PATH=$PATH:$GOPATH/bin
@@ -718,10 +699,6 @@ platform:
718699
os: linux
719700
arch: amd64
720701

721-
workspace:
722-
base: /go
723-
path: src/code.gitea.io/gitea
724-
725702
depends_on:
726703
- testing-amd64
727704
- testing-arm64
@@ -730,6 +707,9 @@ trigger:
730707
ref:
731708
- refs/heads/master
732709
- "refs/tags/**"
710+
event:
711+
exclude:
712+
- cron
733713

734714
steps:
735715
- name: fetch-tags
@@ -784,10 +764,6 @@ platform:
784764
os: linux
785765
arch: arm64
786766

787-
workspace:
788-
base: /go
789-
path: src/code.gitea.io/gitea
790-
791767
depends_on:
792768
- compliance
793769

@@ -820,10 +796,6 @@ platform:
820796
os: linux
821797
arch: arm64
822798

823-
workspace:
824-
base: /go
825-
path: src/code.gitea.io/gitea
826-
827799
depends_on:
828800
- testing-amd64
829801
- testing-arm64
@@ -832,6 +804,10 @@ trigger:
832804
ref:
833805
- refs/heads/master
834806
- "refs/tags/**"
807+
event:
808+
exclude:
809+
- cron
810+
835811
steps:
836812
- name: fetch-tags
837813
image: docker:git
@@ -916,6 +892,9 @@ trigger:
916892
ref:
917893
- refs/heads/master
918894
- "refs/tags/**"
895+
event:
896+
exclude:
897+
- cron
919898

920899
depends_on:
921900
- docker-linux-amd64-release
@@ -946,7 +925,6 @@ trigger:
946925
depends_on:
947926
- testing-amd64
948927
- testing-arm64
949-
- translations
950928
- release-version
951929
- release-latest
952930
- docker-linux-amd64-release

.github/issue_template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
<!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini -->
3131

3232
## Description
33+
<!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please
34+
disable the proxy/CDN fully and connect to gitea directly to confirm
35+
the issue still persists without those services. -->
3336

3437
...
3538

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,6 @@ prime/
106106

107107
# Make evidence files
108108
/.make_evidence
109+
110+
# Manpage
111+
/man

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.15-alpine3.13 AS build-env
4+
FROM golang:1.16-alpine3.13 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}
@@ -22,6 +22,9 @@ WORKDIR ${GOPATH}/src/code.gitea.io/gitea
2222
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2323
&& make clean-all build
2424

25+
# Begin env-to-ini build
26+
RUN go build contrib/environment-to-ini/environment-to-ini.go
27+
2528
FROM alpine:3.13
2629
LABEL maintainer="[email protected]"
2730

@@ -62,4 +65,5 @@ CMD ["/bin/s6-svscan", "/etc/s6"]
6265

6366
COPY docker/root /
6467
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
68+
COPY --from=build-env /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
6569
RUN ln -s /app/gitea/gitea /usr/local/bin/gitea

0 commit comments

Comments
 (0)