Fix docker caching and correcting version in Gitea workflow
build / build-linux-amd64 (push) Successful in 1m56s

This commit is contained in:
2026-05-25 00:07:15 +02:00
parent 8fa1b3e609
commit bc61ec6046
5 changed files with 63 additions and 71 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Runtime entrypoint: pulls the latest .deb artifact from Gitea Actions and
# installs it on every container start, then execs the CMD (hbbs / hbbr).
#
# Configuration comes from the environment — see docker-compose.yml:
# ARTIFACT_URL pinned zip URL; if unset the script discovers the newest
# successful run on GITEA_BRANCH
# GITEA_URL, GITEA_OWNER, GITEA_REPO, GITEA_BRANCH
# required when ARTIFACT_URL is unset
#
# Container fails to start if the fetch fails — that's intentional: we always
# want a fresh artifact, never a stale one.
set -euo pipefail
/usr/local/sbin/fetch-artifact.sh
exec "$@"