This commit is contained in:
parent
27a52b53e4
commit
7309257569
45
.drone.yml
45
.drone.yml
@ -1,6 +1,6 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
name: build-amd64
|
||||
|
||||
platform:
|
||||
arch: amd64
|
||||
@ -39,3 +39,46 @@ 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
|
||||
|
12
Dockerfile.arm64
Normal file
12
Dockerfile.arm64
Normal file
@ -0,0 +1,12 @@
|
||||
ARG BUILD_FROM=ghcr.io/hassio-addons/base/aarch64:12.0.0
|
||||
FROM $BUILD_FROM
|
||||
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
# Copy scripts for add-on
|
||||
COPY run.sh /
|
||||
|
||||
RUN apk add -U jq zabbix-agent2=6.0.5-r0 sudo && \
|
||||
chmod a+x /run.sh
|
||||
|
||||
CMD [ "/run.sh" ]
|
Loading…
Reference in New Issue
Block a user