Skip to content

Commit 1df5f7d

Browse files
committed
Added manifest definition
1 parent 1bfd1ce commit 1df5f7d

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.drone.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ pipeline:
8585
group: docker
8686
repo: plugins/matrix
8787
auto_tag: true
88+
auto_tag_suffix: amd64
8889
dockerfile: Dockerfile
8990
when:
9091
event: [ push, tag ]
@@ -125,6 +126,16 @@ pipeline:
125126
when:
126127
event: [ push, tag ]
127128

129+
manifests:
130+
image: plugins/manifest:1
131+
pull: true
132+
secrets: [ docker_username, docker_password ]
133+
spec: manifest.tmpl
134+
auto_tag: true
135+
ignore_missing: true
136+
when:
137+
event: [ push, tag ]
138+
128139
microbadger:
129140
image: plugins/webhook:1
130141
pull: true

manifest.tmpl

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}{{else}}latest{{/if}}
2+
{{#if build.tags}}
3+
tags:
4+
{{#each build.tags}}
5+
- {{this}}
6+
{{/each}}
7+
{{/if}}
8+
manifests:
9+
-
10+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}amd64
11+
platform:
12+
architecture: amd64
13+
os: linux
14+
-
15+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}i386
16+
platform:
17+
architecture: 386
18+
os: linux
19+
-
20+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}arm64
21+
platform:
22+
architecture: arm64
23+
os: linux
24+
-
25+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}arm
26+
platform:
27+
architecture: arm
28+
os: linux
29+
-
30+
image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}windows
31+
platform:
32+
architecture: amd64
33+
os: windows

0 commit comments

Comments
 (0)