Files
linux-cloud-router/debian-package/publish.sh
T

16 lines
491 B
Bash
Executable File

#!/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 "$DEB" \
"https://gitea.koszewscy.waw.pl/api/packages/slawek/debian/pool/noble/main/upload"