Skip to content

Commit 367f8e1

Browse files
committed
Merge branch 'main' of https://github.com/go-gitea/gitea into feature-swift
2 parents 052b123 + 8cadd51 commit 367f8e1

File tree

606 files changed

+12243
-7679
lines changed

Some content is hidden

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

606 files changed

+12243
-7679
lines changed

.drone.yml

Lines changed: 178 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ trigger:
1212
- push
1313
- tag
1414
- pull_request
15+
paths:
16+
exclude:
17+
- docs/**
1518

1619
volumes:
1720
- name: deps
@@ -112,7 +115,6 @@ steps:
112115
image: golang:1.19 # this step is kept as the lowest version of golang that we support
113116
pull: always
114117
environment:
115-
GO111MODULE: on
116118
GOPROXY: https://goproxy.io
117119
commands:
118120
- go build -o gitea_no_gcc # test if build succeeds without the sqlite tag
@@ -124,7 +126,6 @@ steps:
124126
- name: build-backend-arm64
125127
image: golang:1.20
126128
environment:
127-
GO111MODULE: on
128129
GOPROXY: https://goproxy.io
129130
GOOS: linux
130131
GOARCH: arm64
@@ -140,7 +141,6 @@ steps:
140141
- name: build-backend-windows
141142
image: golang:1.20
142143
environment:
143-
GO111MODULE: on
144144
GOPROXY: https://goproxy.io
145145
GOOS: windows
146146
GOARCH: amd64
@@ -155,7 +155,6 @@ steps:
155155
- name: build-backend-386
156156
image: golang:1.20
157157
environment:
158-
GO111MODULE: on
159158
GOPROXY: https://goproxy.io
160159
GOOS: linux
161160
GOARCH: 386
@@ -183,6 +182,9 @@ trigger:
183182
- push
184183
- tag
185184
- pull_request
185+
paths:
186+
exclude:
187+
- docs/**
186188

187189
volumes:
188190
- name: deps
@@ -410,6 +412,9 @@ trigger:
410412
- push
411413
- tag
412414
- pull_request
415+
paths:
416+
exclude:
417+
- docs/**
413418

414419
volumes:
415420
- name: deps
@@ -517,6 +522,9 @@ depends_on:
517522
trigger:
518523
event:
519524
- pull_request
525+
paths:
526+
exclude:
527+
- docs/**
520528

521529
volumes:
522530
- name: deps
@@ -696,6 +704,9 @@ trigger:
696704
- "release/*"
697705
event:
698706
- push
707+
paths:
708+
exclude:
709+
- docs/**
699710

700711
depends_on:
701712
- testing-amd64
@@ -947,6 +958,9 @@ trigger:
947958
- push
948959
- tag
949960
- pull_request
961+
paths:
962+
include:
963+
- docs/**
950964

951965
steps:
952966
- name: build-docs
@@ -985,10 +999,16 @@ depends_on:
985999

9861000
trigger:
9871001
ref:
988-
- "refs/tags/**"
1002+
include:
1003+
- "refs/tags/**"
1004+
exclude:
1005+
- "refs/tags/**-rc*"
9891006
event:
9901007
exclude:
9911008
- cron
1009+
paths:
1010+
exclude:
1011+
- docs/**
9921012

9931013
steps:
9941014
- name: fetch-tags
@@ -1033,6 +1053,71 @@ steps:
10331053
event:
10341054
exclude:
10351055
- pull_request
1056+
---
1057+
1058+
kind: pipeline
1059+
type: docker
1060+
name: docker-linux-amd64-release-candidate-version
1061+
1062+
platform:
1063+
os: linux
1064+
arch: amd64
1065+
1066+
depends_on:
1067+
- testing-amd64
1068+
- testing-arm64
1069+
1070+
trigger:
1071+
ref:
1072+
- "refs/tags/**-rc*"
1073+
event:
1074+
exclude:
1075+
- cron
1076+
paths:
1077+
exclude:
1078+
- docs/**
1079+
1080+
steps:
1081+
- name: fetch-tags
1082+
image: docker:git
1083+
pull: always
1084+
commands:
1085+
- git config --global --add safe.directory /drone/src
1086+
- git fetch --tags --force
1087+
1088+
- name: publish
1089+
image: techknowlogick/drone-docker:latest
1090+
pull: always
1091+
settings:
1092+
tags: ${DRONE_TAG##v}-linux-amd64
1093+
repo: gitea/gitea
1094+
build_args:
1095+
- GOPROXY=https://goproxy.io
1096+
password:
1097+
from_secret: docker_password
1098+
username:
1099+
from_secret: docker_username
1100+
when:
1101+
event:
1102+
exclude:
1103+
- pull_request
1104+
1105+
- name: publish-rootless
1106+
image: techknowlogick/drone-docker:latest
1107+
settings:
1108+
dockerfile: Dockerfile.rootless
1109+
tags: ${DRONE_TAG##v}-linux-amd64-rootless
1110+
repo: gitea/gitea
1111+
build_args:
1112+
- GOPROXY=https://goproxy.io
1113+
password:
1114+
from_secret: docker_password
1115+
username:
1116+
from_secret: docker_username
1117+
when:
1118+
event:
1119+
exclude:
1120+
- pull_request
10361121

10371122
---
10381123
kind: pipeline
@@ -1176,6 +1261,9 @@ depends_on:
11761261
trigger:
11771262
ref:
11781263
- "refs/pull/**"
1264+
paths:
1265+
exclude:
1266+
- docs/**
11791267

11801268
steps:
11811269
- name: dryrun
@@ -1209,10 +1297,16 @@ depends_on:
12091297

12101298
trigger:
12111299
ref:
1212-
- "refs/tags/**"
1300+
include:
1301+
- "refs/tags/**"
1302+
exclude:
1303+
- "refs/tags/**-rc*"
12131304
event:
12141305
exclude:
12151306
- cron
1307+
paths:
1308+
exclude:
1309+
- docs/**
12161310

12171311
steps:
12181312
- name: fetch-tags
@@ -1258,6 +1352,71 @@ steps:
12581352
exclude:
12591353
- pull_request
12601354

1355+
---
1356+
kind: pipeline
1357+
type: docker
1358+
name: docker-linux-arm64-release-candidate-version
1359+
1360+
platform:
1361+
os: linux
1362+
arch: arm64
1363+
1364+
depends_on:
1365+
- testing-amd64
1366+
- testing-arm64
1367+
1368+
trigger:
1369+
ref:
1370+
- "refs/tags/**-rc*"
1371+
event:
1372+
exclude:
1373+
- cron
1374+
paths:
1375+
exclude:
1376+
- docs/**
1377+
1378+
steps:
1379+
- name: fetch-tags
1380+
image: docker:git
1381+
pull: always
1382+
commands:
1383+
- git config --global --add safe.directory /drone/src
1384+
- git fetch --tags --force
1385+
1386+
- name: publish
1387+
image: techknowlogick/drone-docker:latest
1388+
pull: always
1389+
settings:
1390+
tags: ${DRONE_TAG##v}-linux-arm64
1391+
repo: gitea/gitea
1392+
build_args:
1393+
- GOPROXY=https://goproxy.io
1394+
password:
1395+
from_secret: docker_password
1396+
username:
1397+
from_secret: docker_username
1398+
when:
1399+
event:
1400+
exclude:
1401+
- pull_request
1402+
1403+
- name: publish-rootless
1404+
image: techknowlogick/drone-docker:latest
1405+
settings:
1406+
dockerfile: Dockerfile.rootless
1407+
tags: ${DRONE_TAG##v}-linux-arm64-rootless
1408+
repo: gitea/gitea
1409+
build_args:
1410+
- GOPROXY=https://goproxy.io
1411+
password:
1412+
from_secret: docker_password
1413+
username:
1414+
from_secret: docker_username
1415+
when:
1416+
event:
1417+
exclude:
1418+
- pull_request
1419+
12611420
---
12621421
kind: pipeline
12631422
type: docker
@@ -1277,6 +1436,9 @@ trigger:
12771436
event:
12781437
exclude:
12791438
- cron
1439+
paths:
1440+
exclude:
1441+
- docs/**
12801442

12811443
steps:
12821444
- name: fetch-tags
@@ -1424,10 +1586,15 @@ trigger:
14241586
event:
14251587
exclude:
14261588
- cron
1589+
paths:
1590+
exclude:
1591+
- docs/**
14271592

14281593
depends_on:
14291594
- docker-linux-amd64-release-version
1595+
- docker-linux-amd64-release-candidate-version
14301596
- docker-linux-arm64-release-version
1597+
- docker-linux-arm64-release-candidate-version
14311598

14321599
---
14331600
kind: pipeline
@@ -1470,6 +1637,9 @@ trigger:
14701637
event:
14711638
exclude:
14721639
- cron
1640+
paths:
1641+
exclude:
1642+
- docs/**
14731643

14741644
depends_on:
14751645
- docker-linux-amd64-release
@@ -1509,6 +1679,8 @@ depends_on:
15091679
- docker-linux-arm64-release
15101680
- docker-linux-amd64-release-version
15111681
- docker-linux-arm64-release-version
1682+
- docker-linux-amd64-release-candidate-version
1683+
- docker-linux-arm64-release-candidate-version
15121684
- docker-linux-amd64-release-branch
15131685
- docker-linux-arm64-release-branch
15141686
- docker-manifest

.github/pull_request_template.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!--
2-
1+
<!-- start tips -->
32
Please check the following:
4-
5-
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes.
6-
2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
7-
3. Describe what your pull request does and which issue you're targeting (if any)
8-
9-
-->
3+
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for backports.
4+
2. Make sure you have read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md .
5+
3. Describe what your pull request does and which issue you're targeting (if any).
6+
4. It is recommended to enable "Allow edits by maintainers", so maintainers can help more easily.
7+
5. Your input here will be included in the commit message when this PR has been merged. If you don't want some content to be included, please separate them with a line like `---`.
8+
6. Delete all these tips before posting.
9+
<!-- end tips -->

.gitpod.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ tasks:
1010
- name: Run backend
1111
command: |
1212
gp sync-await setup
13-
mkdir -p custom/conf/
14-
echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
15-
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
13+
if [ ! -f custom/conf/app.ini ]
14+
then
15+
mkdir -p custom/conf/
16+
echo -e "[server]\nROOT_URL=$(gp url 3000)/" > custom/conf/app.ini
17+
echo -e "\n[database]\nDB_TYPE = sqlite3\nPATH = $GITPOD_REPO_ROOT/data/gitea.db" >> custom/conf/app.ini
18+
fi
1619
export TAGS="sqlite sqlite_unlock_notify"
1720
make watch-backend
1821
- name: Run frontend

0 commit comments

Comments
 (0)