[PATCH] scripts: Add support for rebuilding tags with distro release name

1 view
Skip to first unread message

Jan Kiszka

unread,
Oct 17, 2025, 9:55:13 AM (2 days ago) Oct 17
to kas-devel, Felix Moessbauer
From: Jan Kiszka <jan.k...@siemens.com>

Filter out the "-debian-<release>" part of the container tag when
identifying the backing git tag. This allows to run reliably e.g.

scripts/reproduce-container.sh kas-isar:5.0-debian-bookworm

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
scripts/reproduce-container.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/reproduce-container.sh b/scripts/reproduce-container.sh
index 44b888f..277ef1f 100755
--- a/scripts/reproduce-container.sh
+++ b/scripts/reproduce-container.sh
@@ -51,7 +51,7 @@ if [ -z "$DEBIAN_TAG" ]; then
exit 1
fi

-GIT_REFSPEC="$TAG"
+GIT_REFSPEC="${TAG%%-debian-*}"
if [ "$GIT_REFSPEC" = "latest" ]; then
GIT_REFSPEC=master
fi
--
2.51.0
Reply all
Reply to author
Forward
0 new messages