hassio-zabbix-agent2/.drone.yml

159 lines
3.0 KiB
YAML
Raw Normal View History

2021-09-14 13:54:13 +00:00
kind: pipeline
type: docker
2022-06-12 22:14:03 +00:00
name: build-amd64
2021-09-14 13:54:13 +00:00
platform:
arch: amd64
os: linux
2021-09-14 13:54:13 +00:00
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
2021-09-14 13:54:13 +00:00
- name: build_and_publish
image: plugins/docker:linux-amd64
settings:
dockerfile: Dockerfile.amd64
2021-09-14 13:54:13 +00:00
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
2021-09-14 13:54:13 +00:00
username:
from_secret: docker_username
when:
event:
- tag
2021-09-14 13:54:13 +00:00
trigger:
event:
- tag
- push
2022-06-12 22:14:03 +00:00
---
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
2022-06-12 22:23:25 +00:00
# ---
# 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
2022-06-12 22:26:15 +00:00
---
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