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
+
1
56
---
2
57
kind : pipeline
3
58
name : testing
@@ -54,51 +109,11 @@ steps:
54
109
exclude :
55
110
- pull_request
56
111
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
-
92
112
- name : build
93
113
pull : always
94
114
image : golang:1.13
95
115
commands :
96
116
- 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
102
117
- make build
103
118
environment :
104
119
GOPROXY : https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
@@ -113,8 +128,6 @@ steps:
113
128
environment :
114
129
GOPROXY : off
115
130
TAGS : bindata sqlite sqlite_unlock_notify
116
- depends_on :
117
- - build
118
131
when :
119
132
branch :
120
133
- master
@@ -130,8 +143,6 @@ steps:
130
143
environment :
131
144
GOPROXY : off
132
145
TAGS : bindata sqlite sqlite_unlock_notify
133
- depends_on :
134
- - build
135
146
when :
136
147
branch :
137
148
- " release/*"
@@ -583,7 +594,7 @@ steps:
583
594
584
595
---
585
596
kind : pipeline
586
- name : docker-linux-amd64
597
+ name : docker-linux-amd64-release
587
598
588
599
platform :
589
600
os : linux
@@ -600,31 +611,13 @@ trigger:
600
611
ref :
601
612
- refs/heads/master
602
613
- " refs/tags/**"
603
- - " refs/pull/**"
604
614
605
615
steps :
606
616
- name : fetch-tags
607
617
pull : default
608
618
image : docker:git
609
619
commands :
610
620
- 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
628
621
629
622
- name : publish
630
623
pull : always
@@ -646,7 +639,7 @@ steps:
646
639
647
640
---
648
641
kind : pipeline
649
- name : docker-linux-arm64
642
+ name : docker-linux-arm64-dry-run
650
643
651
644
platform :
652
645
os : linux
@@ -657,25 +650,13 @@ workspace:
657
650
path : src/code.gitea.io/gitea
658
651
659
652
depends_on :
660
- - testing
653
+ - compliance
661
654
662
655
trigger :
663
656
ref :
664
- - refs/heads/master
665
- - " refs/tags/**"
666
657
- " refs/pull/**"
667
658
668
659
steps :
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
-
679
660
- name : dryrun
680
661
pull : always
681
662
image : plugins/docker:linux-arm64
@@ -689,6 +670,32 @@ steps:
689
670
event :
690
671
- pull_request
691
672
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
+
692
699
- name : publish
693
700
pull : always
694
701
image : plugins/docker:linux-arm64
@@ -734,8 +741,8 @@ trigger:
734
741
- " refs/tags/**"
735
742
736
743
depends_on :
737
- - docker-linux-amd64
738
- - docker-linux-arm64
744
+ - docker-linux-amd64-release
745
+ - docker-linux-arm64-release
739
746
740
747
---
741
748
kind : pipeline
@@ -762,8 +769,8 @@ depends_on:
762
769
- translations
763
770
- release-version
764
771
- release-master
765
- - docker-linux-amd64
766
- - docker-linux-arm64
772
+ - docker-linux-amd64-release
773
+ - docker-linux-arm64-release
767
774
- docker-manifest
768
775
- docs
769
776
0 commit comments