Skip to content

Commit

Permalink
Merge pull request #118 from googleprivate/feature/archive-sdk-server
Browse files Browse the repository at this point in the history
Zip archive of sdk server server binaries for release
  • Loading branch information
markmandel authored Feb 28, 2018
2 parents 86895cc + fa7dd6b commit 54a7bf7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ build-agones-sdk-binary: ensure-build-image
-o $(mount_path)/cmd/sdk-server/bin/sdk-server.darwin.amd64 $(go_version_flags) $(agones_package)/cmd/sdk-server
docker run --rm -e "GOOS=windows" -e "GOARCH=amd64" $(common_mounts) $(build_tag) go build \
-o $(mount_path)/cmd/sdk-server/bin/sdk-server.windows.amd64.exe $(go_version_flags) $(agones_package)/cmd/sdk-server
docker run --rm $(common_mounts) -w $(mount_path)/cmd/sdk-server/bin/ $(build_tag) zip \
agonessdk-server-$(VERSION).zip sdk-server.darwin.amd64 sdk-server.linux.amd64 sdk-server.windows.amd64.exe

# Build the image for the gameserver sidecar
build-agones-sdk-image: ensure-build-image build-agones-sdk-binary
Expand Down
2 changes: 1 addition & 1 deletion build/build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
FROM grpc/cxx:1.8

RUN apt-get update && \
apt-get install -y wget rsync make python bash-completion && \
apt-get install -y wget rsync make python bash-completion zip && \
apt-get clean

# install go
Expand Down
3 changes: 3 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ steps:
- name: 'gcr.io/cloud-builders/gsutil'
dir: "sdks/cpp/bin"
args: ['cp', '*.tar.gz', 'gs://agones-artifacts/cpp-sdk']
- name: 'gcr.io/cloud-builders/gsutil'
dir: "cmd/sdk-server/bin"
args: ['cp', '*.zip', 'gs://agones-artifacts/sdk-server']
- name: "make-docker"
dir: "build"
args: ["push-build-image"] # push the build image (which won't do anything if it's already there)
Expand Down

0 comments on commit 54a7bf7

Please sign in to comment.