mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Compare commits
7 Commits
a175ea5cef
...
79f0d71d30
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79f0d71d30 | ||
|
|
d1442c607a | ||
|
|
ff6ca99195 | ||
|
|
48d5152586 | ||
|
|
5c378d2e1d | ||
|
|
1ce6f810d5 | ||
|
|
a9475b9a2e |
@@ -1,4 +1,7 @@
|
||||
## description: Automatic addons update by aligning version tag with upstream releases 3.19.15 (08-12-2025)
|
||||
- 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
|
||||
- Improve Codeberg handling with a Gitea API fallback when lastversion lacks custom host support
|
||||
|
||||
|
||||
## 3.19.12 (18-11-2025)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.15"
|
||||
|
||||
@@ -170,7 +170,17 @@ 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
|
||||
LASTVERSION_REPO="$UPSTREAM"
|
||||
|
||||
if [ "${SOURCE}" = "codeberg" ]; then
|
||||
# Codeberg is a hosted Gitea instance; pass the repository as a full URL for lastversion
|
||||
CODEBERG_BASE_URL="https://codeberg.org"
|
||||
ARGUMENTS="--at gitea"
|
||||
LASTVERSION_REPO="${CODEBERG_BASE_URL}/${UPSTREAM}"
|
||||
LOGINFO="... $SLUG : source is codeberg (gitea, using ${CODEBERG_BASE_URL})" && 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
|
||||
@@ -254,7 +264,40 @@ for f in */; do
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
LASTVERSION="$(lastversion "$UPSTREAM" $ARGUMENTS || test_packages)"
|
||||
LASTVERSION="$(lastversion "$LASTVERSION_REPO" $ARGUMENTS || test_packages)"
|
||||
|
||||
# Codeberg fallback: lastversion may not support custom Gitea hosts in older builds
|
||||
if [[ -z "$LASTVERSION" && "${SOURCE}" = "codeberg" ]]; then
|
||||
LOGINFO="... $SLUG : attempting Codeberg API fallback" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||
RELEASES_URL="https://codeberg.org/api/v1/repos/${UPSTREAM}/releases"
|
||||
JQ_FILTER='.[] | select(.draft == false)'
|
||||
if [ "$BETA" != true ]; then
|
||||
JQ_FILTER='.[] | select(.draft == false and .prerelease == false)'
|
||||
fi
|
||||
CODEBERG_TAGS=$(curl -fsSL "$RELEASES_URL" | jq -r "$JQ_FILTER | .tag_name" || true)
|
||||
|
||||
if [ -n "$CODEBERG_TAGS" ]; then
|
||||
if [ -n "$FILTER_TEXT" ]; then
|
||||
CODEBERG_TAGS=$(echo "$CODEBERG_TAGS" | grep "$FILTER_TEXT" || true)
|
||||
fi
|
||||
|
||||
if [ -n "$EXCLUDE_TEXT" ]; then
|
||||
CODEBERG_TAGS=$(echo "$CODEBERG_TAGS" | sed "/${EXCLUDE_TEXT}/d")
|
||||
fi
|
||||
|
||||
CODEBERG_TAGS=$(echo "$CODEBERG_TAGS" | sed '/^$/d' | sort -V)
|
||||
LASTVERSION=$(echo "$CODEBERG_TAGS" | tail -n 1)
|
||||
fi
|
||||
|
||||
if [ -n "$LASTVERSION" ] && [ "$FULLTAG" != true ]; then
|
||||
LASTVERSION="${LASTVERSION#v}"
|
||||
fi
|
||||
|
||||
if [ -z "$LASTVERSION" ]; then
|
||||
bashio::log.warning "... $SLUG : unable to determine Codeberg release"
|
||||
set_continue=true
|
||||
fi
|
||||
fi
|
||||
|
||||
# Continue if issue
|
||||
if [[ "${set_continue:-false}" == true ]]; then
|
||||
|
||||
Reference in New Issue
Block a user