- Update .gitignore to exclude Terraform files - Enhance README with Azure deployment instructions - Refactor publish.sh to use a container for changelog parsing - Add Azure example files including Terraform configurations - Create cloud-init templates for PKI and default configurations - Implement workload VM setup for testing routing
21 lines
572 B
Bash
Executable File
21 lines
572 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
changelog_field() {
|
|
container run --rm -v "$(pwd):/mnt" vpn-router-builder \
|
|
dpkg-parsechangelog --show-field "$1" -l /mnt/debian/changelog
|
|
}
|
|
|
|
VERSION="$(changelog_field Version)"
|
|
PACKAGE="$(changelog_field Source)"
|
|
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"
|