diff --git a/.drone.yml b/.drone.yml index e6f0f11..de2e203 100644 --- a/.drone.yml +++ b/.drone.yml @@ -85,6 +85,7 @@ pipeline: group: docker repo: plugins/matrix auto_tag: true + auto_tag_suffix: amd64 dockerfile: Dockerfile when: event: [ push, tag ] @@ -125,6 +126,16 @@ pipeline: when: event: [ push, tag ] + manifests: + image: plugins/manifest:1 + pull: true + secrets: [ docker_username, docker_password ] + spec: manifest.tmpl + auto_tag: true + ignore_missing: true + when: + event: [ push, tag ] + microbadger: image: plugins/webhook:1 pull: true diff --git a/manifest.tmpl b/manifest.tmpl new file mode 100644 index 0000000..b3013a7 --- /dev/null +++ b/manifest.tmpl @@ -0,0 +1,33 @@ +image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - + image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}amd64 + platform: + architecture: amd64 + os: linux + - + image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}i386 + platform: + architecture: 386 + os: linux + - + image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}arm64 + platform: + architecture: arm64 + os: linux + - + image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}arm + platform: + architecture: arm + os: linux + - + image: plugins/matrix:{{#if build.tag}}{{trimPrefix build.tag "v"}}-{{/if}}windows + platform: + architecture: amd64 + os: windows