0
0
mirror of https://github.com/thegeeklab/wp-matrix.git synced 2024-11-22 00:30:41 +00:00

Added manifest definition

This commit is contained in:
Thomas Boerger 2018-01-09 11:22:43 +01:00
parent 1bfd1cedbd
commit 1df5f7d4e7
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6
2 changed files with 44 additions and 0 deletions

View File

@ -85,6 +85,7 @@ pipeline:
group: docker group: docker
repo: plugins/matrix repo: plugins/matrix
auto_tag: true auto_tag: true
auto_tag_suffix: amd64
dockerfile: Dockerfile dockerfile: Dockerfile
when: when:
event: [ push, tag ] event: [ push, tag ]
@ -125,6 +126,16 @@ pipeline:
when: when:
event: [ push, tag ] 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: microbadger:
image: plugins/webhook:1 image: plugins/webhook:1
pull: true pull: true

33
manifest.tmpl Normal file
View File

@ -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