check version is in changelog (pushed and current tree updated) before proceeding

This commit is contained in:
ralf 2023-03-30 09:04:38 +02:00
parent 8211e0a8e3
commit 7afc50b7d9

View File

@ -42,6 +42,16 @@ done
exit 1
}
# check $version is already in changelog
grep -q "$version.$packaging" $(dirname $0)/debian.changes || {
git pull
grep -q "$version.$packaging" $(dirname $0)/debian.changes || {
echo "No $version.$packaging in changelog ($(dirname $0)/debian.changes)!"
echo "Did you pushed it to the branch?"
exit 1
}
}
ucs=4.4
univention-appcenter-control list | tee /tmp/ucs-apps | egrep "$ucs/egroupware=$version.$packaging$postfix" || {
@ -69,4 +79,4 @@ sed -i "" \
-e "s|image:.*docker.software-univention.de/egroupware-push.*|image: phpswoole/swoole:5.0-php8.1-alpine|" \
-e "s|image:.*docker.software-univention.de/egroupware-nginx.*|image: nginx:stable-alpine|" \
/tmp/compose
$debug univention-appcenter-control upload $ucs/egroupware=$version.$packaging$postfix /tmp/compose
$debug univention-appcenter-control upload $ucs/egroupware=$version.$packaging$postfix /tmp/compose