cyberark/secretless-broker

View on GitHub
bin/build_darwin

Summary

Maintainability
Test Coverage
#!/bin/bash 

set -ex

pushd "$(dirname "$0")/.."
trap popd EXIT INT TERM

echo "Building for darwin/amd64"

mkdir -p dist/darwin/amd64
env GOOS=darwin GOARCH=amd64 go build -o dist/darwin/amd64/secretless-broker ./cmd/secretless-broker

if [[ -z "$NO_SUMMON" ]]; then
  env GOOS=darwin GOARCH=amd64 go build -o dist/darwin/amd64/summon2 ./cmd/summon2
fi