Skip to content

Release Build (HA Proxy-Addon) #26

Release Build (HA Proxy-Addon)

Release Build (HA Proxy-Addon) #26

Workflow file for this run

---
name: Release Build (HA Proxy-Addon)
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Build HA Proxy-Addon
# strategy:
# matrix:
# arch: ["aarch64", "amd64", "armhf", "armv7", "i386"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Get information
id: info
uses: home-assistant/actions/helpers/info@master
with:
path: "./home-assistant-addon-proxy"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3.7.1
with:
install: true
- name: Login to GitHub Container Registry
if: env.BUILD_ARGS != '--test'
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Extract docker metadata
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: ${{ steps.info.outputs.image }}
labels: |
org.opencontainers.image.description=Alternative OS for your homematicIP CCU
org.opencontainers.image.vendor=RasperryMatic OpenSource Project
org.opencontainers.image.authors=RaspberryMatic OpenSource Team
org.opencontainers.image.version=${{ steps.info.outputs.version }}
org.opencontainers.image.url=https://raspberrymatic.de
annotations: |
org.opencontainers.image.description=Alternative OS for your homematicIP CCU
org.opencontainers.image.vendor=RasperryMatic OpenSource Project
org.opencontainers.image.authors=RaspberryMatic OpenSource Team
org.opencontainers.image.version=${{ steps.info.outputs.version }}
org.opencontainers.image.url=https://raspberrymatic.de
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
- name: Build and push container image
uses: docker/build-push-action@v6.9.0
id: docker_build
with:
context: home-assistant-addon-proxy
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: false
labels: |
org.opencontainers.image.title=RaspberryMatic HA Proxy-Addon
org.opencontainers.image.description=A web proxy to your homematicIP CCU
org.opencontainers.image.vendor=RasperryMatic OpenSource Project
org.opencontainers.image.authors=RaspberryMatic OpenSource Team
org.opencontainers.image.licenses=Apache-2.0
org.opencontainers.image.url=https://raspberrymatic.de
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.documentation=https://github.com/${{ github.repository }}/wiki
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.version=${{ steps.info.outputs.version }}
io.hass.name=RaspberryMatic CCU (Proxy)
io.hass.description=A web proxy to your homematicIP CCU
io.hass.url=https://github.com/${{ github.repository }}/tree/master/home-assistant-addon-proxy
io.hass.version=${{ steps.info.outputs.version }}
io.hass.type=addon
io.hass.arch=armv7|aarch64|amd64
tags: |
${{ steps.info.outputs.image }}:${{ steps.info.outputs.version }}
${{ steps.info.outputs.image }}:latest
annotations: |
${{ steps.meta.outputs.annotations }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}