v0.1.2
Go quality gates / test (push) Waiting to run

This commit is contained in:
Mateusz Gruszczyński committed 2026-12-01 00:16:15 +01:00
1 parent de13d851a8
commit a28362b82c
34 files changed
+1541 -341

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
set -eu
ROOT=$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd)
ARCH=${GOARCH:-amd64}
VERSION=${VERSION:-0.1.1}
VERSION=${VERSION:-0.1.2-1}
case "$ARCH" in
amd64|arm64) ;;
*) echo "Unsupported architecture: $ARCH (use amd64 or arm64)" >&2; exit 1 ;;
@@ -17,7 +17,7 @@ chmod 0755 "$STAGING"
mkdir -p "$STAGING/DEBIAN" "$STAGING/usr/bin" "$STAGING/lib/systemd/system" "$STAGING/etc/easydns-ui" "$ROOT/dist"
cd "$ROOT"
# Each build embeds its own fingerprint into the static asset filenames.
# The package release remains 0.1.1 unless the operator explicitly changes it.
# The package release defaults to 0.1.2-1 unless explicitly overridden.
BUILD_ID=${BUILD_ID:-$(date -u +%Y%m%dT%H%M%S)-$(od -An -N8 -tx1 /dev/urandom | tr -d ' \n')}
case "$BUILD_ID" in
''|*[!A-Za-z0-9._-]*) echo 'Invalid BUILD_ID' >&2; exit 1 ;;
+3 -3
View File
@@ -5,7 +5,7 @@ set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
IMAGE=${IMAGE:-golang:1.23-bookworm}
BUILD_ID=${BUILD_ID:-}
VERSION=${VERSION:-0.1.1}
VERSION=${VERSION:-0.1.2-1}
ARCH=${ARCH:-${GOARCH:-all}}
usage() {
@@ -17,7 +17,7 @@ on the host; Go, dpkg-deb, and cross-compilation tools run in the container.
Options:
--arch Architectures to build (default: all = amd64 + arm64)
--version Debian package version (default: 0.1.1)
--version Debian package version (default: 0.1.2-1)
--image Debian-based Go image (default: golang:1.23-bookworm)
--build-id Optional unique build stamp for hashed static filenames
-h, --help Show this message
@@ -27,7 +27,7 @@ Packages are written to ./dist/easydns-ui_VERSION_ARCH.deb.
Examples:
./scripts/build_deb.sh
./scripts/build_deb.sh --arch amd64 --version 0.1.1
./scripts/build_deb.sh --arch amd64 --version 0.1.2-1
IMAGE=golang:1.23-bookworm ./scripts/build_deb.sh --arch arm64
HELP
}