Compare commits

...

4 Commits

Author SHA1 Message Date
eta 320098dd76 fixed owner name in other files!
build-and-push / check-branch (push) Successful in 8s
build-and-push / build (amd64, linux/amd64) (push) Successful in 11m9s
2026-08-15 16:49:02 +03:30
eta 1d185f5d6c fixed owner name in config
build-and-push / check-branch (push) Successful in 9s
build-and-push / build (amd64, linux/amd64) (push) Successful in 10m53s
2026-08-15 16:23:21 +03:30
eta 32821d2604 set env vars in build and push
build-and-push / check-branch (push) Successful in 8s
build-and-push / build (amd64, linux/amd64) (push) Successful in 7m51s
2026-08-15 15:02:33 +03:30
eta e220b5a0c2 fixed runner dependency issue
build-and-push / check-branch (push) Successful in 9s
build-and-push / build (amd64, linux/amd64) (push) Failing after 5m35s
2026-08-15 13:13:50 +03:30
4 changed files with 42 additions and 18 deletions
+36 -12
View File
@@ -16,24 +16,48 @@
# release — Supervisor pulls the image tag matching that version
# exactly, so an unbumped version means it silently keeps using the
# old image.
#
# Triggers only on pushed tags matching "v*", and only builds if that
# tag's commit is actually part of main's history (see check-branch job).
name: build-and-push
on:
push:
tags:
- "v*"
# paths:
# - "mqtt-cert-manager/**"
# branches:
# - main
env:
REGISTRY_HOST: git.example.com
REGISTRY_OWNER: YOUR_USER
REGISTRY_HOST: gitea.viratak.com
REGISTRY_OWNER: bitopa
IMAGE_NAME: mqtt-cert-manager
jobs:
check-branch:
runs-on: ubuntu-latest
outputs:
on_main: ${{ steps.check.outputs.on_main }}
steps:
- name: Checkout (full history)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Make sure we have main's history too
run: git fetch origin main:refs/remotes/origin/main
- name: Is this tag's commit part of main?
id: check
run: |
if git merge-base --is-ancestor HEAD origin/main; then
echo "on_main=true" >> "$GITHUB_OUTPUT"
else
echo "on_main=false" >> "$GITHUB_OUTPUT"
echo "Tag $GITHUB_REF_NAME points to a commit that is not on main — skipping build."
fi
build:
needs: check-branch
if: needs.check-branch.outputs.on_main == 'true'
runs-on: ubuntu-latest
strategy:
matrix:
@@ -56,18 +80,18 @@ jobs:
- name: Read add-on version
id: version
# Plain shell instead of python3+PyYAML: the runner's Python has
# no yaml module installed, and this value is a simple one-liner
# anyway (version: "0.1.0"), so there's no need for a real YAML
# parser or an extra apt/pip install step just for this.
run: |
VERSION=$(python3 -c "import yaml; print(yaml.safe_load(open('mqtt-cert-manager/config.yaml'))['version'])")
VERSION=$(grep '^version:' mqtt-cert-manager/config.yaml | cut -d'"' -f2)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Read base image for this arch from build.yaml
id: base
run: |
BUILD_FROM=$(python3 -c "
import yaml
d = yaml.safe_load(open('mqtt-cert-manager/build.yaml'))
print(d['build_from']['${{ matrix.arch }}'])
")
BUILD_FROM=$(grep -E "^[[:space:]]*${{ matrix.arch }}:" mqtt-cert-manager/build.yaml | cut -d'"' -f2)
echo "build_from=$BUILD_FROM" >> "$GITHUB_OUTPUT"
- name: Set up QEMU (needed to build non-amd64 targets on an amd64 runner)
+1 -1
View File
@@ -4,7 +4,7 @@ App/add-on repository for [Viratak](https://viratak.com).
Apps documentation: <https://developers.home-assistant.io/docs/apps>
[![Open your Home Assistant instance and show the app store with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_store.svg)](https://my.home-assistant.io/redirect/supervisor_store/?repository_url=https://gitea.viratak.com/eta/virarepo)
[![Open your Home Assistant instance and show the app store with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_store.svg)](https://my.home-assistant.io/redirect/supervisor_store/?repository_url=https://gitea.viratak.com/bitopa/virarepo)
## Apps
+3 -3
View File
@@ -1,8 +1,8 @@
name: "MQTT Certificate Manager"
version: "0.3.1"
version: "0.3.5"
slug: "mqtt_cert_manager"
description: "Local CA that issues and manages TLS client certificates for MQTT nodes"
url: "https://gitea.viratak.com/eta/mqtt-cert-manager"
url: "https://gitea.viratak.com/bitopa/mqtt-cert-manager"
# Points Supervisor at a pre-built image instead of building locally on
# install. {arch} is substituted with each entry in "arch:" below (amd64,
# aarch64, ...) — Supervisor then pulls
@@ -10,7 +10,7 @@ url: "https://gitea.viratak.com/eta/mqtt-cert-manager"
# REPLACE git.example.com/YOUR_USER with your actual Gitea host + owner.
# Remove this line entirely to fall back to local building (e.g. while
# developing, before you've set up CI).
image: "gitea.viratak.com/eta/mqtt-cert-manager-{arch}"
image: "gitea.viratak.com/bitopa/mqtt-cert-manager-{arch}"
# TEMPORARY: restricted to amd64 only while developing against a single
# Dell thin client. Restore the full list before publishing for others —
# see the commented-out entries below.
+1 -1
View File
@@ -1,4 +1,4 @@
# https://developers.home-assistant.io/docs/apps/repository#repository-configuration
name: Viratak Home Assistant app repository
url: 'https://gitea.viratak.com/eta/virarepo'
url: 'https://gitea.viratak.com/bitopa/virarepo'
maintainer: Saman Sajedi <sajedi@viratak.com>