Skip to content

Commit 823cbf0

Browse files
author
dependabot-ci
committed
parallelize build and use native infra
1 parent 6dc4bb9 commit 823cbf0

File tree

4 files changed

+51
-89
lines changed

4 files changed

+51
-89
lines changed

.drone.yml

+49-59
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ steps:
1818
depends_on:
1919
- test
2020

21-
- name: publish_latest
21+
- name: publish linux
2222
image: plugins/docker
2323
settings:
2424
repo: drone/cli
@@ -32,23 +32,33 @@ steps:
3232
event: [push, tag]
3333
depends_on:
3434
- build
35-
36-
- name: publish_alpine
37-
image: plugins/docker
35+
36+
- name: release
37+
image: plugins/github-release
3838
settings:
39-
repo: drone/cli
40-
username:
41-
from_secret: docker_username
42-
password:
43-
from_secret: docker_password
44-
auto_tag: true
45-
auto_tag_suffix: alpine-amd64
46-
dockerfile: Dockerfile.alpine
39+
files:
40+
- release/drone_*.tar.gz
41+
- release/drone_checksums.txt
42+
api_key:
43+
from_secret: github_token
4744
when:
48-
event: [push, tag]
45+
event: tag
4946
depends_on:
5047
- build
5148

49+
---
50+
kind: pipeline
51+
type: vm
52+
name: arm
53+
54+
pool:
55+
use: ubuntu_arm64
56+
57+
steps:
58+
- name: build
59+
image: golang:1.18
60+
commands:
61+
- sh .drone.sh
5262
- name: publish_linux_arm
5363
image: plugins/docker
5464
settings:
@@ -83,51 +93,31 @@ steps:
8393
depends_on:
8494
- build
8595

86-
- name: publish_linux_ppc64le
87-
image: plugins/docker
88-
settings:
89-
repo: drone/cli
90-
username:
91-
from_secret: docker_username
92-
password:
93-
from_secret: docker_password
94-
auto_tag: true
95-
auto_tag_suffix: linux-ppc64le
96-
dockerfile: Dockerfile.linux.ppc64le
97-
when:
98-
event: [push, tag]
99-
depends_on:
100-
- build
96+
depends_on:
97+
- default
98+
99+
---
100+
kind: pipeline
101+
type: vm
102+
name: manifest
101103

102-
- name: release
103-
image: plugins/github-release
104-
settings:
105-
files:
106-
- release/drone_*.tar.gz
107-
- release/drone_checksums.txt
108-
api_key:
109-
from_secret: github_token
110-
when:
111-
event: tag
112-
depends_on:
113-
- build
114-
115-
- name: manifest
116-
image: plugins/manifest
117-
settings:
118-
auto_tag: true
119-
ignore_missing: true
120-
spec: docker/manifest.tmpl
121-
username:
122-
from_secret: docker_username
123-
password:
124-
from_secret: docker_password
125-
when:
126-
event: [push, tag]
127-
depends_on:
128-
- publish_latest
129-
- publish_alpine
130-
- publish_linux_arm
131-
- publish_linux_arm64
132-
- publish_linux_ppc64le
104+
pool:
105+
use: ubuntu
106+
107+
steps:
108+
- name: manifest
109+
image: plugins/manifest
110+
settings:
111+
auto_tag: true
112+
ignore_missing: true
113+
spec: docker/manifest.tmpl
114+
username:
115+
from_secret: docker_username
116+
password:
117+
from_secret: docker_password
118+
when:
119+
event: [push, tag]
133120

121+
depends_on:
122+
- default
123+
- arm

Dockerfile.alpine

-7
This file was deleted.

Dockerfile.linux.ppc64le

-11
This file was deleted.

docker/manifest.tmpl

+2-12
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,15 @@ manifests:
1111
platform:
1212
architecture: amd64
1313
os: linux
14-
-
15-
image: drone/cli:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}alpine-amd64
16-
platform:
17-
architecture: amd64
18-
os: linux
1914
-
2015
image: drone/cli:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
2116
platform:
2217
architecture: arm
2318
os: linux
24-
variant: v6
19+
variant: v7
2520
-
2621
image: drone/cli:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
2722
platform:
2823
architecture: arm64
2924
os: linux
30-
variant: v8
31-
-
32-
image: drone/cli:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-ppc64le
33-
platform:
34-
architecture: ppc64le
35-
os: linux
25+
variant: v8

0 commit comments

Comments
 (0)