server/scripts/ci/build_release.sh

Summary

Maintainability
Test Coverage
#!/bin/sh -e

VERSION=$1
if [ -z "$VERSION" ] ; then
    echo "Required version argument!" 1>&2
    echo 1>&2
    echo "Usage: $0 VERSION" 1>&2
    exit 1
fi

export CGO_ENABLED=0

gox -osarch="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64" \
    -output="release-build/$VERSION/{{.OS}}-{{.Arch}}/bin/vault-plugin-secrets-trdl" \
    -ldflags="-s -w" \
        github.com/werf/trdl/server/cmd/vault-plugin-secrets-trdl