multiarch image
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paolo Asperti 2022-06-13 00:26:15 +02:00
parent ddba94f72d
commit 596b7d37b1
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 62 additions and 0 deletions

View File

@ -125,3 +125,34 @@ trigger:
# event:
# - tag
# - push
---
kind: pipeline
type: docker
name: manifest
steps:
- name: manifest
image: plugins/manifest
settings:
force_tag: true
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- ${DRONE_SEMVER_MAJOR}
trigger:
event:
- tag
depends_on:
- build-amd64
- build-arm64
# - build-arm

31
manifest.tmpl Normal file
View File

@ -0,0 +1,31 @@
image: docker.asperti.com/paspo/hassio-zabbix-agent2:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
-
image: docker.asperti.com/paspo/hassio-zabbix-agent2:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}-amd64
platform:
architecture: amd64
os: linux
-
image: docker.asperti.com/paspo/hassio-zabbix-agent2:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}-arm64
platform:
variant: v8
architecture: arm64
os: linux
-
image: docker.asperti.com/paspo/hassio-zabbix-agent2:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}-arm64
platform:
variant: v8
architecture: aarch64
os: linux
-
image: docker.asperti.com/paspo/hassio-zabbix-agent2:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}-arm
platform:
variant: v7
architecture: arm
os: linux