separated amd64 arch and updated base image
continuous-integration/drone/push Build is passing Details

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
name: default
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
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- latest-amd64
- ${DRONE_TAG}-amd64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-amd64
username:
from_secret: docker_username
when:
event:
- tag
trigger:
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
ENV LANG C.UTF-8
@ -6,7 +6,7 @@ ENV LANG C.UTF-8
# Copy scripts for add-on
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
CMD [ "/run.sh" ]