From ddba94f72dcc712103728a83f01bfffe502124e5 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Mon, 13 Jun 2022 00:23:25 +0200 Subject: [PATCH] placeholder for arm arch --- .drone.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ Dockerfile.arm | 12 ++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 Dockerfile.arm diff --git a/.drone.yml b/.drone.yml index 76751f7..db06f7d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -82,3 +82,46 @@ 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 diff --git a/Dockerfile.arm b/Dockerfile.arm new file mode 100644 index 0000000..7935876 --- /dev/null +++ b/Dockerfile.arm @@ -0,0 +1,12 @@ +ARG BUILD_FROM=ghcr.io/hassio-addons/base/armhf: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" ]