Skip to content

Commit

Permalink
paths
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Meijer <[email protected]>
  • Loading branch information
Alex Meijer committed Mar 1, 2024
1 parent f782729 commit f421e95
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/build-plugins
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ fi
echo $(pwd)
plugin_name=$(basename $(dirname $gomod))
echo "plugin name: $plugin_name"
GOOS=linux GOARCH=arm64 go build -x -o "./build/$plugin_name.ocplugin.arm64" \
cd $plugin_name
GOOS=linux GOARCH=arm64 go build -x -o "../build/$plugin_name.ocplugin.arm64" \
-ldflags \
"-X github.com/opencost/opencost/pkg/version.Version=$VERSION \
-X github.com/opencost/opencost/pkg/version.GitCommit=$COMMIT" \
$(dirname $gomod)/cmd/main
./cmd/main

GOOS=linux GOARCH=amd64 go build -x -o "./build/$plugin_name.ocplugin.amd64" \
GOOS=linux GOARCH=amd64 go build -x -o "../build/$plugin_name.ocplugin.amd64" \
-ldflags \
"-X github.com/opencost/opencost/pkg/version.Version=$VERSION \
-X github.com/opencost/opencost/pkg/version.GitCommit=$COMMIT" \
$(dirname $gomod)/cmd/main
./cmd/main

0 comments on commit f421e95

Please sign in to comment.