Commit 8e95dcf4 authored by Chris Molozian's avatar Chris Molozian
Browse files

Update build and release instructions.

parent 92033d62
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.