commit d6b603938abcafa5e8402ba2ef7a8784aa162f4c
parent 1e8af067b966d417766db24b0810be05201f17c0
Author: Florian Dold <florian@dold.me>
Date: Sun, 3 Aug 2025 15:19:40 +0200
update test/demo only based on tags, not on master
Diffstat:
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/host/sandcastle-up b/host/sandcastle-up
@@ -3,12 +3,15 @@
set -eu
set -x
+tag_glob=
case $USER in
demo|taler-demo)
unitfile=container-taler-sandcastle-demo.service
+ tag_glob='demo-*'
;;
test|taler-test)
unitfile=container-taler-sandcastle-test.service
+ tag_glob='test-*'
;;
taler-kyctest)
unitfile=container-taler-sandcastle-kyctest.service
@@ -21,7 +24,15 @@ esac
cd $HOME/sandcastle-ng
-git pull
+
+if [[ -z "${tag_glob}" ]]; then
+ # No tag glob, just use master
+ git pull
+else
+ git fetch
+ tag=$(git tag -l "$tag_glob" --sort=-v:refname | head -n1)
+ git checkout tags/$tag
+fi
./sandcastle-build