update to multiarch

This commit is contained in:
2025-03-05 15:20:58 +01:00
parent d58638800d
commit 00b5994cc3
2 changed files with 59 additions and 14 deletions

47
.drone.yml Normal file
View File

@@ -0,0 +1,47 @@
kind: pipeline
type: kubernetes
name: default
node_selector:
physical-node: dev2
trigger:
branch:
- master
event:
- push
workspace:
path: /drone/src
steps:
- name: build multiarch from dev
image: docker.io/owncloudci/drone-docker-buildx:4
privileged: true
settings:
cache-from: [ "registry.dev.format.hu/homeassistant-init-container" ]
registry: registry.dev.format.hu
repo: registry.dev.format.hu/homeassistant-init-container
tags: latest
dockerfile: Dockerfile
username:
from_secret: dev-hu-registry-username
password:
from_secret: dev-hu-registry-password
platforms:
- linux/amd64
- linux/arm64
- name: pull image to dockerhub
image: docker.io/owncloudci/drone-docker-buildx:4
privileged: true
settings:
cache-from: [ "safebox/homeassistant-init-container" ]
repo: safebox/homeassistant-init-container
tags: latest
username:
from_secret: dockerhub-username
password:
from_secret: dockerhub-password
platforms:
- linux/amd64
- linux/arm64

View File

@@ -2,7 +2,6 @@
HOMEASSISTANT_DOMAIN="https://$DOMAIN"; HOMEASSISTANT_DOMAIN="https://$DOMAIN";
if [ "$DOMAIN" == "localhost" ]; then
SELECTOR=$HOMEASSISTANT SELECTOR=$HOMEASSISTANT
HOMEASSISTANT_IP=$(hostname -i | awk '{print $1}') HOMEASSISTANT_IP=$(hostname -i | awk '{print $1}')
@@ -17,7 +16,6 @@ if [ "$DOMAIN" == "localhost" ]; then
else else
echo "$HOMEASSISTANT_IP $SELECTOR" >> $HOST_FILE echo "$HOMEASSISTANT_IP $SELECTOR" >> $HOST_FILE
fi fi
fi
mkdir -p /etc/user/data/homeassistant/config mkdir -p /etc/user/data/homeassistant/config