#!/usr/bin/env bash
#
# Build an openbsd binary from linux
#

set -eu -o pipefail

source ./scripts/build/.variables

export CGO_ENABLED=0
export GOOS=openbsd
export GOARCH=amd64

# Override TARGET
TARGET="build/docker-$GOOS-$GOARCH"

echo "Building $TARGET"
go build -o "${TARGET}" --ldflags "${LDFLAGS}" "${SOURCE}"
