separated amd64 arch and updated base image
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paolo Asperti 2022-06-13 00:05:49 +02:00
parent 858b937272
commit 27a52b53e4
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 23 additions and 5 deletions

View File

@ -2,20 +2,38 @@ kind: pipeline
type: docker type: docker
name: default name: default
platform:
arch: amd64
os: linux
steps: 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 - name: build_and_publish
image: plugins/docker:linux-amd64 image: plugins/docker:linux-amd64
settings: settings:
dockerfile: Dockerfile.amd64
password: password:
from_secret: docker_password from_secret: docker_password
registry: docker.asperti.com registry: docker.asperti.com
repo: docker.asperti.com/paspo/hassio-zabbix-agent2 repo: docker.asperti.com/paspo/hassio-zabbix-agent2
tags: tags:
- latest - latest-amd64
- ${DRONE_TAG} - ${DRONE_TAG}-amd64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR} - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-amd64
username: username:
from_secret: docker_username from_secret: docker_username
when:
event:
- tag
trigger: trigger:
event: event:

View File

@ -1,4 +1,4 @@
ARG BUILD_FROM=hassioaddons/base:8.0.6 ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.0.0
FROM $BUILD_FROM FROM $BUILD_FROM
ENV LANG C.UTF-8 ENV LANG C.UTF-8
@ -6,7 +6,7 @@ ENV LANG C.UTF-8
# Copy scripts for add-on # Copy scripts for add-on
COPY run.sh / COPY run.sh /
RUN apk add -U jq zabbix-agent2=5.0.14-r1 sudo && \ RUN apk add -U jq zabbix-agent2=6.0.5-r0 sudo && \
chmod a+x /run.sh chmod a+x /run.sh
CMD [ "/run.sh" ] CMD [ "/run.sh" ]