CI: build all distros and upload to S3

This commit is contained in:
Dmitry Maksyoma
2021-03-18 23:19:28 +13:00
parent 56fd118c43
commit f758fc5021
5 changed files with 165 additions and 10 deletions

19
builder/build-package Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -e
os="$1"
codename="$2"
detect_package_format() {
package_format=rpm
if ls builder/dockerfile*"$os"* | grep -q .deb.build; then
package_format=deb
fi
}
cd "$(dirname "$0")/.."
detect_package_format
builder/build-tarball "$os" "$codename"
builder/build-${package_format} "$os" "$codename"