Skip to content

Commit f23b496

Browse files
authored
Merge branch 'main' into invalid-csrf-redirect
2 parents 954c879 + 5c80ecc commit f23b496

File tree

2,989 files changed

+166353
-122722
lines changed

Some content is hidden

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

2,989 files changed

+166353
-122722
lines changed

.drone.yml

Lines changed: 43 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: compliance
44

55
platform:
66
os: linux
7-
arch: arm64
7+
arch: amd64
88

99
trigger:
1010
event:
@@ -15,19 +15,19 @@ trigger:
1515
steps:
1616
- name: deps-frontend
1717
pull: always
18-
image: node:14
18+
image: node:16
1919
commands:
2020
- make node_modules
2121

2222
- name: lint-frontend
23-
image: node:14
23+
image: node:16
2424
commands:
2525
- make lint-frontend
2626
depends_on: [deps-frontend]
2727

2828
- name: lint-backend
2929
pull: always
30-
image: golang:1.16
30+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
3131
commands:
3232
- make lint-backend
3333
environment:
@@ -37,7 +37,7 @@ steps:
3737

3838
- name: lint-backend-windows
3939
pull: always
40-
image: golang:1.16
40+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
4141
commands:
4242
- make golangci-lint vet
4343
environment:
@@ -49,7 +49,7 @@ steps:
4949

5050
- name: lint-backend-gogit
5151
pull: always
52-
image: golang:1.16
52+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
5353
commands:
5454
- make lint-backend
5555
environment:
@@ -58,7 +58,7 @@ steps:
5858
TAGS: bindata gogit sqlite sqlite_unlock_notify
5959

6060
- name: checks-frontend
61-
image: node:14
61+
image: node:16
6262
commands:
6363
- make checks-frontend
6464
depends_on: [deps-frontend]
@@ -70,11 +70,17 @@ steps:
7070
- make checks-backend
7171
depends_on: [lint-backend]
7272

73+
- name: test-frontend
74+
image: node:16
75+
commands:
76+
- make test-frontend
77+
depends_on: [lint-frontend]
78+
7379
- name: build-frontend
74-
image: node:14
80+
image: node:16
7581
commands:
7682
- make frontend
77-
depends_on: [lint-frontend]
83+
depends_on: [test-frontend]
7884

7985
- name: build-backend-no-gcc
8086
pull: always
@@ -147,7 +153,7 @@ services:
147153
MYSQL_DATABASE: test
148154

149155
- name: mysql8
150-
image: mysql:8.0
156+
image: mysql:8
151157
environment:
152158
MYSQL_ALLOW_EMPTY_PASSWORD: yes
153159
MYSQL_DATABASE: testgitea
@@ -168,7 +174,7 @@ services:
168174
image: elasticsearch:7.5.0
169175

170176
- name: minio
171-
image: minio/minio:RELEASE.2021-01-16T02-19-44Z
177+
image: minio/minio:RELEASE.2021-03-12T00-00-47Z
172178
commands:
173179
- minio server /data
174180
environment:
@@ -223,10 +229,8 @@ steps:
223229
from_secret: github_read_token
224230

225231
- name: test-mysql
226-
image: golang:1.16
232+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
227233
commands:
228-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
229-
- apt-get install -y git-lfs
230234
- make test-mysql-migration integration-test-coverage
231235
environment:
232236
GOPROXY: off
@@ -238,10 +242,8 @@ steps:
238242
- build
239243

240244
- name: test-mysql8
241-
image: golang:1.16
245+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
242246
commands:
243-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
244-
- apt-get install -y git-lfs
245247
- timeout -s ABRT 40m make test-mysql8-migration test-mysql8
246248
environment:
247249
GOPROXY: off
@@ -252,10 +254,8 @@ steps:
252254
- build
253255

254256
- name: test-mssql
255-
image: golang:1.16
257+
image: gitea/test_env:linux-amd64 # https://gitea.com/gitea/test-env
256258
commands:
257-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
258-
- apt-get install -y git-lfs
259259
- make test-mssql-migration test-mssql
260260
environment:
261261
GOPROXY: off
@@ -277,7 +277,7 @@ steps:
277277
- test-mysql
278278
when:
279279
branch:
280-
- master
280+
- main
281281
event:
282282
- push
283283
- pull_request
@@ -294,7 +294,7 @@ steps:
294294
- generate-coverage
295295
when:
296296
branch:
297-
- master
297+
- main
298298
event:
299299
- push
300300
- pull_request
@@ -319,7 +319,7 @@ trigger:
319319
services:
320320
- name: pgsql
321321
pull: default
322-
image: postgres:9.5
322+
image: postgres:10
323323
environment:
324324
POSTGRES_DB: test
325325
POSTGRES_PASSWORD: postgres
@@ -349,10 +349,8 @@ steps:
349349
TAGS: bindata gogit sqlite sqlite_unlock_notify
350350

351351
- name: test-sqlite
352-
image: golang:1.16
352+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
353353
commands:
354-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
355-
- apt-get install -y git-lfs
356354
- timeout -s ABRT 40m make test-sqlite-migration test-sqlite
357355
environment:
358356
GOPROXY: off
@@ -363,10 +361,8 @@ steps:
363361
- build
364362

365363
- name: test-pgsql
366-
image: golang:1.16
364+
image: gitea/test_env:linux-arm64 # https://gitea.com/gitea/test-env
367365
commands:
368-
- "curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash"
369-
- apt-get install -y git-lfs
370366
- timeout -s ABRT 40m make test-pgsql-migration test-pgsql
371367
environment:
372368
GOPROXY: off
@@ -387,7 +383,7 @@ platform:
387383

388384
trigger:
389385
branch:
390-
- master
386+
- main
391387
event:
392388
- cron
393389
cron:
@@ -418,6 +414,7 @@ steps:
418414
settings:
419415
author_email: "[email protected]"
420416
author_name: GiteaBot
417+
branch: main
421418
commit: true
422419
commit_message: "[skip ci] Updated translations via Crowdin"
423420
remote: "[email protected]:go-gitea/gitea.git"
@@ -447,7 +444,7 @@ platform:
447444

448445
trigger:
449446
branch:
450-
- master
447+
- main
451448
event:
452449
- cron
453450
cron:
@@ -465,6 +462,7 @@ steps:
465462
settings:
466463
author_email: "[email protected]"
467464
author_name: GiteaBot
465+
branch: main
468466
commit: true
469467
commit_message: "[skip ci] Updated licenses and gitignores "
470468
remote: "[email protected]:go-gitea/gitea.git"
@@ -486,7 +484,7 @@ workspace:
486484

487485
trigger:
488486
branch:
489-
- master
487+
- main
490488
- "release/*"
491489
event:
492490
- push
@@ -505,7 +503,7 @@ steps:
505503
pull: always
506504
image: techknowlogick/xgo:go-1.16.x
507505
commands:
508-
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
506+
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
509507
- export PATH=$PATH:$GOPATH/bin
510508
- make release
511509
environment:
@@ -532,7 +530,7 @@ steps:
532530
image: plugins/s3:1
533531
settings:
534532
acl: public-read
535-
bucket: releases
533+
bucket: gitea-artifacts
536534
endpoint: https://storage.gitea.io
537535
path_style: true
538536
source: "dist/release/*"
@@ -549,24 +547,24 @@ steps:
549547
event:
550548
- push
551549

552-
- name: release-master
550+
- name: release-main
553551
image: plugins/s3:1
554552
settings:
555553
acl: public-read
556-
bucket: releases
554+
bucket: gitea-artifacts
557555
endpoint: https://storage.gitea.io
558556
path_style: true
559557
source: "dist/release/*"
560558
strip_prefix: dist/release/
561-
target: /gitea/master
559+
target: /gitea/main
562560
environment:
563561
AWS_ACCESS_KEY_ID:
564562
from_secret: aws_access_key_id
565563
AWS_SECRET_ACCESS_KEY:
566564
from_secret: aws_secret_access_key
567565
when:
568566
branch:
569-
- master
567+
- main
570568
event:
571569
- push
572570

@@ -601,7 +599,7 @@ steps:
601599
pull: always
602600
image: techknowlogick/xgo:go-1.16.x
603601
commands:
604-
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt -y install nodejs
602+
- curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs
605603
- export PATH=$PATH:$GOPATH/bin
606604
- make release
607605
environment:
@@ -628,7 +626,7 @@ steps:
628626
image: plugins/s3:1
629627
settings:
630628
acl: public-read
631-
bucket: releases
629+
bucket: gitea-artifacts
632630
endpoint: https://storage.gitea.io
633631
path_style: true
634632
source: "dist/release/*"
@@ -687,7 +685,7 @@ steps:
687685
from_secret: netlify_token
688686
when:
689687
branch:
690-
- master
688+
- main
691689
event:
692690
- push
693691

@@ -705,7 +703,7 @@ depends_on:
705703

706704
trigger:
707705
ref:
708-
- refs/heads/master
706+
- refs/heads/main
709707
- "refs/tags/**"
710708
event:
711709
exclude:
@@ -802,7 +800,7 @@ depends_on:
802800

803801
trigger:
804802
ref:
805-
- refs/heads/master
803+
- refs/heads/main
806804
- "refs/tags/**"
807805
event:
808806
exclude:
@@ -890,7 +888,7 @@ steps:
890888

891889
trigger:
892890
ref:
893-
- refs/heads/master
891+
- refs/heads/main
894892
- "refs/tags/**"
895893
event:
896894
exclude:
@@ -913,7 +911,7 @@ clone:
913911

914912
trigger:
915913
branch:
916-
- master
914+
- main
917915
- "release/*"
918916
event:
919917
- push

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ insert_final_newline = true
1212
[*.{go,tmpl,html}]
1313
indent_style = tab
1414

15+
[templates/custom/*.tmpl]
16+
insert_final_newline = false
17+
18+
[templates/swagger/v1_json.tmpl]
19+
indent_style = space
20+
21+
[templates/user/auth/oidc_wellknown.tmpl]
22+
indent_style = space
23+
1524
[Makefile]
1625
indent_style = tab
1726

0 commit comments

Comments
 (0)