Merge pull request #2264 from alexbelgium/codex/update-addons-updater-for-codeberg-support

Clarify Codeberg arguments for addons updater
This commit is contained in:
Alexandre
2025-12-08 10:28:08 +01:00
committed by GitHub
4 changed files with 13 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
- 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
- Add support for codeberg source handling and increment version
## 3.19.12 (18-11-2025)

View File

@@ -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 supported via its Gitea API, which is configured automatically)
- 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

View File

@@ -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"

View File

@@ -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