1+ ---
2+ kind : pipeline
3+ name : compliance
4+
5+ platform :
6+ os : linux
7+ arch : arm64
8+
9+ workspace :
10+ base : /go
11+ path : src/code.gitea.io/gitea
12+
13+ steps :
14+ - name : pre-build
15+ pull : always
16+ image : node:10 # this step is kept at the lowest version of node that we support
17+ commands :
18+ - make css
19+ - make js
20+
21+ - name : build-without-gcc
22+ pull : always
23+ image : golang:1.11 # this step is kept as the lowest version of golang that we support
24+ environment :
25+ GO111MODULE : on
26+ GOPROXY : off
27+ commands :
28+ - go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
29+
30+ - name : build-linux-386
31+ pull : always
32+ image : golang:1.13
33+ environment :
34+ GO111MODULE : on
35+ GOPROXY : off
36+ GOOS : linux
37+ GOARCH : 386
38+ commands :
39+ - go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
40+
41+ - name : check
42+ pull : always
43+ image : golang:1.13
44+ commands :
45+ - make clean
46+ - make golangci-lint
47+ - make revive
48+ - make swagger-check
49+ - make swagger-validate
50+ - make test-vendor
51+ environment :
52+ GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
53+ GOSUMDB : sum.golang.org
54+ TAGS : bindata sqlite sqlite_unlock_notify
55+
156---
257kind : pipeline
358name : testing
@@ -54,51 +109,11 @@ steps:
54109 exclude :
55110 - pull_request
56111
57- - name : pre-build
58- pull : always
59- image : node:10 # this step is kept at the lowest version of node that we support
60- commands :
61- - make css
62- - make js
63-
64- - name : build-without-gcc
65- pull : always
66- image : golang:1.11 # this step is kept as the lowest version of golang that we support
67- environment :
68- GO111MODULE : on
69- GOPROXY : off
70- commands :
71- - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
72- - go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
73-
74- - name : build-linux-386
75- pull : always
76- image : golang:1.13
77- environment :
78- GO111MODULE : on
79- GOPROXY : off
80- GOOS : linux
81- GOARCH : 386
82- commands :
83- - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
84- - go build -mod=vendor -o gitea_linux_386 # test if compatible with 32 bit
85-
86- - name : golangci-lint
87- pull : always
88- image : golangci/golangci-lint:v1.22.2
89- commands :
90- - golangci-lint run -v --timeout 5m
91-
92112 - name : build
93113 pull : always
94114 image : golang:1.13
95115 commands :
96116 - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
97- - make clean
98- - make revive
99- - make swagger-check
100- - make swagger-validate
101- - make test-vendor
102117 - make build
103118 environment :
104119 GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
@@ -113,8 +128,6 @@ steps:
113128 environment :
114129 GOPROXY : off
115130 TAGS : bindata sqlite sqlite_unlock_notify
116- depends_on :
117- - build
118131 when :
119132 branch :
120133 - master
@@ -130,8 +143,6 @@ steps:
130143 environment :
131144 GOPROXY : off
132145 TAGS : bindata sqlite sqlite_unlock_notify
133- depends_on :
134- - build
135146 when :
136147 branch :
137148 - " release/*"
@@ -583,7 +594,7 @@ steps:
583594
584595---
585596kind : pipeline
586- name : docker-linux-amd64
597+ name : docker-linux-amd64-release
587598
588599platform :
589600 os : linux
@@ -600,31 +611,13 @@ trigger:
600611 ref :
601612 - refs/heads/master
602613 - " refs/tags/**"
603- - " refs/pull/**"
604614
605615steps :
606616 - name : fetch-tags
607617 pull : default
608618 image : docker:git
609619 commands :
610620 - git fetch --tags --force
611- when :
612- event :
613- exclude :
614- - pull_request
615-
616- - name : dryrun
617- pull : always
618- image : plugins/docker:linux-amd64
619- settings :
620- dry_run : true
621- repo : gitea/gitea
622- tags : linux-amd64
623- build_args :
624- - GOPROXY=off
625- when :
626- event :
627- - pull_request
628621
629622 - name : publish
630623 pull : always
@@ -646,7 +639,7 @@ steps:
646639
647640---
648641kind : pipeline
649- name : docker-linux-arm64
642+ name : docker-linux-arm64-dry-run
650643
651644platform :
652645 os : linux
@@ -657,25 +650,13 @@ workspace:
657650 path : src/code.gitea.io/gitea
658651
659652depends_on :
660- - testing
653+ - compliance
661654
662655trigger :
663656 ref :
664- - refs/heads/master
665- - " refs/tags/**"
666657 - " refs/pull/**"
667658
668659steps :
669- - name : fetch-tags
670- pull : default
671- image : docker:git
672- commands :
673- - git fetch --tags --force
674- when :
675- event :
676- exclude :
677- - pull_request
678-
679660 - name : dryrun
680661 pull : always
681662 image : plugins/docker:linux-arm64
@@ -689,6 +670,32 @@ steps:
689670 event :
690671 - pull_request
691672
673+ ---
674+ kind : pipeline
675+ name : docker-linux-arm64-release
676+
677+ platform :
678+ os : linux
679+ arch : arm64
680+
681+ workspace :
682+ base : /go
683+ path : src/code.gitea.io/gitea
684+
685+ depends_on :
686+ - testing
687+
688+ trigger :
689+ ref :
690+ - refs/heads/master
691+ - " refs/tags/**"
692+ steps :
693+ - name : fetch-tags
694+ pull : default
695+ image : docker:git
696+ commands :
697+ - git fetch --tags --force
698+
692699 - name : publish
693700 pull : always
694701 image : plugins/docker:linux-arm64
@@ -734,8 +741,8 @@ trigger:
734741 - " refs/tags/**"
735742
736743depends_on :
737- - docker-linux-amd64
738- - docker-linux-arm64
744+ - docker-linux-amd64-release
745+ - docker-linux-arm64-release
739746
740747---
741748kind : pipeline
@@ -762,8 +769,8 @@ depends_on:
762769 - translations
763770 - release-version
764771 - release-master
765- - docker-linux-amd64
766- - docker-linux-arm64
772+ - docker-linux-amd64-release
773+ - docker-linux-arm64-release
767774 - docker-manifest
768775 - docs
769776
0 commit comments