Skip to content
This repository was archived by the owner on May 23, 2021. It is now read-only.

Commit 6a7c311

Browse files
committed
Combine release and test build configurations
1 parent fa79989 commit 6a7c311

File tree

1 file changed

+21
-128
lines changed

1 file changed

+21
-128
lines changed

.drone.yml

+21-128
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Drone CI Pipeline for nbin
2-
3-
## AMD64 Pipeline - Build Test
41
kind: pipeline
52
type: docker
63
name: build-amd64
@@ -36,13 +33,17 @@ steps:
3633
mount:
3734
- /root/.cache/ccache
3835

39-
trigger:
40-
event:
41-
exclude:
42-
- tag
36+
- name: upload
37+
image: plugins/gcs
38+
settings:
39+
source: build/
40+
target: nbin.cdr.sh
41+
token:
42+
from_secret: gcs-token
43+
when:
44+
event: tag
4345

4446
---
45-
## ARM64 - Build Test
4647
kind: pipeline
4748
type: docker
4849
name: build-arm64
@@ -78,13 +79,17 @@ steps:
7879
mount:
7980
- /root/.cache/ccache
8081

81-
trigger:
82-
event:
83-
exclude:
84-
- tag
82+
- name: upload
83+
image: plugins/gcs
84+
settings:
85+
source: build/
86+
target: nbin.cdr.sh
87+
token:
88+
from_secret: gcs-token
89+
when:
90+
event: tag
8591

8692
---
87-
## ARM - Build Test
8893
kind: pipeline
8994
type: docker
9095
name: build-arm
@@ -120,124 +125,12 @@ steps:
120125
mount:
121126
- /root/.cache/ccache
122127

123-
trigger:
124-
event:
125-
exclude:
126-
- tag
127-
128-
---
129-
## AMD64 - Release
130-
kind: pipeline
131-
type: docker
132-
name: release-amd64
133-
134-
platform:
135-
arch: amd64
136-
137-
steps:
138-
- name: restore-cache
139-
image: codercom/drone-volume-cache:amd64
140-
volumes:
141-
- name: ccache-amd64
142-
path: /cache
143-
settings:
144-
restore: true
145-
mount:
146-
- /root/.cache/ccache
147-
148-
- name: build
149-
image: node:12
150-
commands:
151-
- apt update && apt install -y build-essential ccache
152-
- yarn
153-
- ARCH=amd64 ./scripts/ci.bash
154-
155-
- name: deploy
156-
image: plugins/gcs
157-
settings:
158-
source: build/
159-
target: nbin.cdr.sh
160-
token:
161-
from_secret: gcs-token
162-
163-
trigger:
164-
event:
165-
- tag
166-
167-
---
168-
## ARM64 - Release
169-
kind: pipeline
170-
type: docker
171-
name: release-arm64
172-
173-
platform:
174-
arch: arm64
175-
176-
steps:
177-
- name: restore-cache
178-
image: codercom/drone-volume-cache:arm64
179-
volumes:
180-
- name: ccache-arm64
181-
path: /cache
182-
settings:
183-
restore: true
184-
mount:
185-
- /root/.cache/ccache
186-
187-
- name: build
188-
image: node:12
189-
commands:
190-
- apt update && apt install -y build-essential ccache
191-
- yarn
192-
- ARCH=arm64 ./scripts/ci.bash
193-
194-
- name: deploy
128+
- name: upload
195129
image: plugins/gcs
196130
settings:
197131
source: build/
198132
target: nbin.cdr.sh
199133
token:
200134
from_secret: gcs-token
201-
202-
trigger:
203-
event:
204-
- tag
205-
206-
---
207-
## ARM - Release
208-
kind: pipeline
209-
type: docker
210-
name: release-arm
211-
212-
platform:
213-
arch: arm
214-
215-
steps:
216-
- name: restore-cache
217-
image: codercom/drone-volume-cache:arm
218-
volumes:
219-
- name: ccache-arm
220-
path: /cache
221-
settings:
222-
restore: true
223-
mount:
224-
- /root/.cache/ccache
225-
226-
- name: build
227-
image: node:12
228-
commands:
229-
- apt update && apt install -y build-essential ccache
230-
- yarn
231-
- ARCH=arm ./scripts/ci.bash
232-
233-
- name: deploy
234-
image: plugins/gcs
235-
settings:
236-
source: build/
237-
target: nbin.cdr.sh
238-
token:
239-
from_secret: gcs-token
240-
241-
trigger:
242-
event:
243-
- tag
135+
when:
136+
event: tag

0 commit comments

Comments
 (0)