Reengineed the code. Generalized the package. Cloud configurators are modules.
This commit is contained in:
Regular → Executable
+13
-1
@@ -1,3 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
VERSION="$(dpkg-parsechangelog --show-field Version -l debian/changelog)"
|
||||
PACKAGE="$(dpkg-parsechangelog --show-field Source -l debian/changelog)"
|
||||
DEB="out/${PACKAGE}_${VERSION}_all.deb"
|
||||
|
||||
if [ ! -f "$DEB" ]; then
|
||||
printf 'ERROR: %s does not exist. Run ./build.sh first.\n' "$DEB" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -v --user "slawek:$(cat ~/.gitea-packages-token)" \
|
||||
--upload-file out/cloud-router_1.0.0-1_all.deb \
|
||||
--upload-file "$DEB" \
|
||||
"https://gitea.koszewscy.waw.pl/api/packages/slawek/debian/pool/noble/main/upload"
|
||||
|
||||
Reference in New Issue
Block a user