Files
landwelle/scripts/build-migrator-x64.sh
OpenGenesis (MPL 2.0) 2ed47e77b5 feat: migrate Landwelle server builds and deployment to Linux x64 v1.5.75
* feat(x64): add Linux amd64 builds, deploy scripts and regression tests

* docs(x64): update release, operations and architecture references

* docs(x64): add migration, cutover and rollback runbook

* ci(x64): verify Docker runtime and protect container build context
2026-11-07 15:23:52 +01:00

21 lines
568 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
if [[ "$(uname -s)" != "Linux" || "$(uname -m)" != "x86_64" ]]; then
echo "Für diesen x64-Schritt ist ein Linux-x86_64-Rechner erforderlich." >&2
exit 1
fi
mkdir -p dist
# Build darf go.mod/go.sum nicht automatisch verändern.
go mod download
go mod verify
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOAMD64=v1 \
go build -trimpath -ldflags="-s -w" \
-o dist/landwelle-migrate-linux-amd64 ./cmd/migrate
echo "Erstellt: dist/landwelle-migrate-linux-amd64"