hassio-zabbix-agent2/.drone.yml
Paolo Asperti 596b7d37b1
All checks were successful
continuous-integration/drone/push Build is passing
multiarch image
2022-06-13 00:29:25 +02:00

159 lines
3.0 KiB
YAML

kind: pipeline
type: docker
name: build-amd64
platform:
arch: amd64
os: linux
steps:
- name: build
image: plugins/docker:linux-amd64
settings:
dockerfile: Dockerfile.amd64
dry_run: true
repo: docker.asperti.com/paspo/hassio-zabbix-agent2
when:
event:
- push
- name: build_and_publish
image: plugins/docker:linux-amd64
settings:
dockerfile: Dockerfile.amd64
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/hassio-zabbix-agent2
tags:
- latest-amd64
- ${DRONE_TAG}-amd64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-amd64
username:
from_secret: docker_username
when:
event:
- tag
trigger:
event:
- tag
- push
---
kind: pipeline
type: docker
name: build-arm64
platform:
arch: arm64
os: linux
steps:
- name: build
image: plugins/docker:linux-arm64
settings:
dockerfile: Dockerfile.arm64
dry_run: true
repo: docker.asperti.com/paspo/hassio-zabbix-agent2
when:
event:
- push
- name: build_and_publish
image: plugins/docker:linux-arm64
settings:
dockerfile: Dockerfile.arm64
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/hassio-zabbix-agent2
tags:
- latest-arm64
- ${DRONE_TAG}-arm64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-arm64
username:
from_secret: docker_username
when:
event:
- tag
trigger:
event:
- tag
- push
# ---
# kind: pipeline
# type: docker
# name: build-arm
# platform:
# arch: arm
# os: linux
# steps:
# - name: build
# image: plugins/docker:linux-arm
# settings:
# dockerfile: Dockerfile.arm
# dry_run: true
# repo: docker.asperti.com/paspo/hassio-zabbix-agent2
# when:
# event:
# - push
# - name: build_and_publish
# image: plugins/docker:linux-arm
# settings:
# dockerfile: Dockerfile.arm
# password:
# from_secret: docker_password
# registry: docker.asperti.com
# repo: docker.asperti.com/paspo/hassio-zabbix-agent2
# tags:
# - latest-arm
# - ${DRONE_TAG}-arm
# - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-arm
# username:
# from_secret: docker_username
# when:
# event:
# - tag
# 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