hassio-zabbix-agent2/.drone.yml

128 lines
2.5 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