11 lines
342 B
Bash
Executable File
11 lines
342 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
ARCH=amd64
|
|
BIN_NAME="netbox-dns-updater-linux-$ARCH"
|
|
|
|
# Build optimized binary and strip debug symbols
|
|
echo "Building optimized netbox-dns-updater for linux/$ARCH..."
|
|
GOOS=linux GOARCH=$ARCH go build -ldflags="-s -w" -o build/$BIN_NAME netbox-dns-updater.go
|
|
echo "Build complete: build/$BIN_NAME (optimized and stripped)"
|