Mac os how to build linux package

I develop grafana in mac os , now I want to make the binary .tar.gz file use the command ,go run build.go build package .but I want to get help how to build .tar.gz file to run in the linux centos server . now the file only can run in mac and not run in linux