diff --git a/addons_updater/CHANGELOG.md b/addons_updater/CHANGELOG.md index fb606987e..4daa1ba9c 100644 --- a/addons_updater/CHANGELOG.md +++ b/addons_updater/CHANGELOG.md @@ -1,5 +1,14 @@ - The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release +## 3.19.14 + +- Document why Codeberg uses Gitea arguments and clarify handling + +## 3.19.13 + +- Fix codeberg source handling and increment version + + ## 3.19.12 (18-11-2025) - Added support for configuring extra environment variables through the `env_vars` option. diff --git a/addons_updater/README.md b/addons_updater/README.md index 9cbd91fd8..5481da7a8 100644 --- a/addons_updater/README.md +++ b/addons_updater/README.md @@ -66,7 +66,7 @@ You can add the following tags in the file : - repository: 'name/repo' coming from github - paused: true # Pauses the updates - slug: the slug name from your addon -- source: dockerhub/github,gitlab,bitbucket,pip,hg,sf,website-feed,local,helm_chart,wiki,system,wp +- source: dockerhub/github,gitlab,bitbucket,pip,hg,sf,website-feed,local,helm_chart,wiki,system,wp,codeberg (Codeberg is Gitea-based and requires the Codeberg API base) - upstream_repo: name/repo, example is 'linuxserver/docker-emby' - upstream_version: automatically populated, corresponds to the current upstream version referenced in the addon - dockerhub_by_date: in dockerhub, uses the last_update date instead of the version diff --git a/addons_updater/config.yaml b/addons_updater/config.yaml index 18faa4477..4f58d5c9e 100644 --- a/addons_updater/config.yaml +++ b/addons_updater/config.yaml @@ -28,4 +28,4 @@ schema: slug: updater udev: true url: https://github.com/alexbelgium/hassio-addons/tree/master/addons_updater -version: "3.19.12" +version: "3.19.14" diff --git a/addons_updater/rootfs/etc/cont-init.d/99-run.sh b/addons_updater/rootfs/etc/cont-init.d/99-run.sh index 5afe031c4..815e7a067 100755 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -170,7 +170,15 @@ for f in */; do # Use source as upstream ARGUMENTS="--at $SOURCE" - LOGINFO="... $SLUG : source is $SOURCE" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi + + if [ "${SOURCE}" = "codeberg" ]; then + # Codeberg is a hosted Gitea instance; lastversion needs the API base to resolve releases + CODEBERG_API_BASE="https://codeberg.org/api/v1" + ARGUMENTS="--at gitea --api-base ${CODEBERG_API_BASE}" + LOGINFO="... $SLUG : source is codeberg (gitea, using ${CODEBERG_API_BASE})" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi + else + LOGINFO="... $SLUG : source is $SOURCE" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi + fi #Prepare tag flag if [ "${FULLTAG}" = true ]; then