File tree Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Expand file tree Collapse file tree 3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ local PipelineBuild(os="linux", arch="amd64") = {
4343 },
4444 steps: [
4545 {
46- name: "build" ,
46+ name: "build-push " ,
4747 image: "golang:1.11" ,
4848 pull: "always" ,
4949 environment: {
@@ -58,7 +58,7 @@ local PipelineBuild(os="linux", arch="amd64") = {
5858 },
5959 },
6060 {
61- name: "build" ,
61+ name: "build-tag " ,
6262 image: "golang:1.11" ,
6363 pull: "always" ,
6464 environment: {
Original file line number Diff line number Diff line change 11---
22kind : pipeline
3- name : linux -amd64
3+ name : windows -amd64
44
55platform :
6- os : linux
6+ os : windows
77 arch : amd64
88
99steps :
1010- name : build
1111 pull : always
1212 image : golang:1.11
1313 commands :
14- - " go build -v -ldflags \" -X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/linux /amd64/drone-matrix"
14+ - " go build -v -ldflags \" -X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/windows /amd64/drone-matrix"
1515 environment :
1616 CGO_ENABLED : 0
1717 GO111MODULE : on
2424 pull : always
2525 image : golang:1.11
2626 commands :
27- - " go build -v -ldflags \" -X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/linux /amd64/drone-matrix"
27+ - " go build -v -ldflags \" -X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/windows /amd64/drone-matrix"
2828 environment :
2929 CGO_ENABLED : 0
3030 GO111MODULE : on
@@ -34,14 +34,14 @@ steps:
3434
3535- name : dryrun
3636 pull : always
37- image : plugins/docker:linux -amd64
37+ image : plugins/docker:windows -amd64
3838 settings :
39- dockerfile : docker/Dockerfile.linux .amd64
39+ dockerfile : docker/Dockerfile.windows .amd64
4040 dry_run : true
4141 password :
4242 from_secret : docker_password
4343 repo : plugins/matrix
44- tags : linux -amd64
44+ tags : windows -amd64
4545 username :
4646 from_secret : docker_username
4747 when :
@@ -50,11 +50,11 @@ steps:
5050
5151- name : publish
5252 pull : always
53- image : plugins/docker:linux -amd64
53+ image : plugins/docker:windows -amd64
5454 settings :
5555 auto_tag : true
56- auto_tag_suffix : linux -amd64
57- dockerfile : docker/Dockerfile.linux .amd64
56+ auto_tag_suffix : windows -amd64
57+ dockerfile : docker/Dockerfile.windows .amd64
5858 password :
5959 from_secret : docker_password
6060 repo : plugins/matrix
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ platform:
3636 arch : amd64
3737
3838steps :
39- - name : build
39+ - name : build-push
4040 pull : always
4141 image : golang:1.11
4242 commands :
4949 - push
5050 - pull_request
5151
52- - name : build
52+ - name : build-tag
5353 pull : always
5454 image : golang:1.11
5555 commands :
@@ -110,7 +110,7 @@ platform:
110110 arch : arm64
111111
112112steps :
113- - name : build
113+ - name : build-push
114114 pull : always
115115 image : golang:1.11
116116 commands :
@@ -123,7 +123,7 @@ steps:
123123 - push
124124 - pull_request
125125
126- - name : build
126+ - name : build-tag
127127 pull : always
128128 image : golang:1.11
129129 commands :
@@ -184,7 +184,7 @@ platform:
184184 arch : arm
185185
186186steps :
187- - name : build
187+ - name : build-push
188188 pull : always
189189 image : golang:1.11
190190 commands :
@@ -197,7 +197,7 @@ steps:
197197 - push
198198 - pull_request
199199
200- - name : build
200+ - name : build-tag
201201 pull : always
202202 image : golang:1.11
203203 commands :
You can’t perform that action at this time.
0 commit comments