mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fixes for build scripts
This commit is contained in:
@@ -105,7 +105,7 @@ lb config \
|
|||||||
--iso-preparer "START9 LABS; HTTPS://START9.COM" \
|
--iso-preparer "START9 LABS; HTTPS://START9.COM" \
|
||||||
--iso-publisher "START9 LABS; HTTPS://START9.COM" \
|
--iso-publisher "START9 LABS; HTTPS://START9.COM" \
|
||||||
--backports true \
|
--backports true \
|
||||||
--bootappend-live "boot=live noautologin" \
|
--bootappend-live "boot=live noautologin console=tty0" \
|
||||||
--bootloaders $BOOTLOADERS \
|
--bootloaders $BOOTLOADERS \
|
||||||
--cache false \
|
--cache false \
|
||||||
--mirror-bootstrap "https://deb.debian.org/debian/" \
|
--mirror-bootstrap "https://deb.debian.org/debian/" \
|
||||||
|
|||||||
@@ -11,10 +11,22 @@ START9_GPG_KEY="2D63C217"
|
|||||||
ARCHES="aarch64 aarch64-nonfree aarch64-nvidia riscv64 riscv64-nonfree x86_64 x86_64-nonfree x86_64-nvidia"
|
ARCHES="aarch64 aarch64-nonfree aarch64-nvidia riscv64 riscv64-nonfree x86_64 x86_64-nonfree x86_64-nvidia"
|
||||||
CLI_ARCHES="aarch64 riscv64 x86_64"
|
CLI_ARCHES="aarch64 riscv64 x86_64"
|
||||||
|
|
||||||
|
parse_run_id() {
|
||||||
|
local val="$1"
|
||||||
|
if [[ "$val" =~ /actions/runs/([0-9]+) ]]; then
|
||||||
|
echo "${BASH_REMATCH[1]}"
|
||||||
|
else
|
||||||
|
echo "$val"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
require_version() {
|
require_version() {
|
||||||
if [ -z "$VERSION" ]; then
|
if [ -z "${VERSION:-}" ]; then
|
||||||
>&2 echo '$VERSION required'
|
read -rp "VERSION: " VERSION
|
||||||
exit 2
|
if [ -z "$VERSION" ]; then
|
||||||
|
>&2 echo '$VERSION required'
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,6 +87,22 @@ resolve_gh_user() {
|
|||||||
|
|
||||||
cmd_download() {
|
cmd_download() {
|
||||||
require_version
|
require_version
|
||||||
|
|
||||||
|
if [ -z "${RUN_ID:-}" ]; then
|
||||||
|
read -rp "RUN_ID (OS images, leave blank to skip): " RUN_ID
|
||||||
|
fi
|
||||||
|
RUN_ID=$(parse_run_id "${RUN_ID:-}")
|
||||||
|
|
||||||
|
if [ -z "${ST_RUN_ID:-}" ]; then
|
||||||
|
read -rp "ST_RUN_ID (start-tunnel, leave blank to skip): " ST_RUN_ID
|
||||||
|
fi
|
||||||
|
ST_RUN_ID=$(parse_run_id "${ST_RUN_ID:-}")
|
||||||
|
|
||||||
|
if [ -z "${CLI_RUN_ID:-}" ]; then
|
||||||
|
read -rp "CLI_RUN_ID (start-cli, leave blank to skip): " CLI_RUN_ID
|
||||||
|
fi
|
||||||
|
CLI_RUN_ID=$(parse_run_id "${CLI_RUN_ID:-}")
|
||||||
|
|
||||||
ensure_release_dir
|
ensure_release_dir
|
||||||
|
|
||||||
if [ -n "$RUN_ID" ]; then
|
if [ -n "$RUN_ID" ]; then
|
||||||
@@ -143,10 +171,14 @@ cmd_upload() {
|
|||||||
enter_release_dir
|
enter_release_dir
|
||||||
|
|
||||||
for file in $(release_files); do
|
for file in $(release_files); do
|
||||||
gh release upload -R $REPO "v$VERSION" "$file"
|
case "$file" in
|
||||||
done
|
*.iso|*.squashfs)
|
||||||
for file in *.iso *.squashfs; do
|
s3cmd put -P "$file" "$S3_BUCKET/v$VERSION/$file"
|
||||||
s3cmd put -P "$file" "$S3_BUCKET/v$VERSION/$file"
|
;;
|
||||||
|
*)
|
||||||
|
gh release upload -R $REPO "v$VERSION" "$file"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user