Loading build/README.md +6 −5 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ These steps are one off to install the required build utilities. 2. Install the command line helper tool. Ensure "$GOPATH/bin" is on your system path to access the executable. ``` env GO111MODULE=off go get -u src.techknowlogick.com/xgo go install src.techknowlogick.com/xgo@latest ``` These steps are run for each new release. Loading @@ -39,7 +39,8 @@ These steps are run for each new release. 3. Execute the cross-compiled build helper. ``` xgo --targets=darwin/amd64,linux/amd64,linux/arm64,windows/amd64 --trimpath --ldflags "-s -w -X main.version=2.1.0 -X main.commitID=$(git rev-parse --short HEAD 2>/dev/null)" github.com/heroiclabs/nakama xgo --targets=darwin/arm64,darwin/amd64,linux/amd64,linux/arm64,windows/amd64 --trimpath --ldflags "-s -w -X main.version=2.1.0 -X main.commitID=$(git rev-parse --short HEAD 2>/dev/null)" github.com/heroiclabs/nakama ``` This will build binaries for all target platforms supported officially by Heroic Labs. Loading @@ -60,7 +61,7 @@ With the release generated we can create the official container image. ``` cd build docker build "$PWD" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama:2.1.0 docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama:2.1.0 ``` 2. Push the image to the container registry. Loading @@ -79,7 +80,7 @@ With the release generated we can also create an official container image which ``` cd build docker build "$PWD" --file ./Dockerfile.dsym --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-dsym:2.1.0 docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile.dsym --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-dsym:2.1.0 ``` 2. Push the image to the container registry. Loading @@ -98,7 +99,7 @@ With the official release image generated we can create a container image to hel ``` cd build/pluginbuilder docker build "$PWD" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-pluginbuilder:2.1.0 docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-pluginbuilder:2.1.0 ``` 2. Push the image to the container registry. Loading Loading
build/README.md +6 −5 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ These steps are one off to install the required build utilities. 2. Install the command line helper tool. Ensure "$GOPATH/bin" is on your system path to access the executable. ``` env GO111MODULE=off go get -u src.techknowlogick.com/xgo go install src.techknowlogick.com/xgo@latest ``` These steps are run for each new release. Loading @@ -39,7 +39,8 @@ These steps are run for each new release. 3. Execute the cross-compiled build helper. ``` xgo --targets=darwin/amd64,linux/amd64,linux/arm64,windows/amd64 --trimpath --ldflags "-s -w -X main.version=2.1.0 -X main.commitID=$(git rev-parse --short HEAD 2>/dev/null)" github.com/heroiclabs/nakama xgo --targets=darwin/arm64,darwin/amd64,linux/amd64,linux/arm64,windows/amd64 --trimpath --ldflags "-s -w -X main.version=2.1.0 -X main.commitID=$(git rev-parse --short HEAD 2>/dev/null)" github.com/heroiclabs/nakama ``` This will build binaries for all target platforms supported officially by Heroic Labs. Loading @@ -60,7 +61,7 @@ With the release generated we can create the official container image. ``` cd build docker build "$PWD" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama:2.1.0 docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama:2.1.0 ``` 2. Push the image to the container registry. Loading @@ -79,7 +80,7 @@ With the release generated we can also create an official container image which ``` cd build docker build "$PWD" --file ./Dockerfile.dsym --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-dsym:2.1.0 docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile.dsym --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-dsym:2.1.0 ``` 2. Push the image to the container registry. Loading @@ -98,7 +99,7 @@ With the official release image generated we can create a container image to hel ``` cd build/pluginbuilder docker build "$PWD" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-pluginbuilder:2.1.0 docker build "$PWD" --platform "linux/amd64" --file ./Dockerfile --build-arg commit="$(git rev-parse --short HEAD 2>/dev/null)" --build-arg version=2.1.0 -t heroiclabs/nakama-pluginbuilder:2.1.0 ``` 2. Push the image to the container registry. Loading