-
Notifications
You must be signed in to change notification settings - Fork 820
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Versioning for dev and release
When working in development, images and go binaries will be versioned with the git hash. On release the version can be overwritten in the `build/Makefile` to explicitly set the version. Closes #21
- Loading branch information
1 parent
0c61acb
commit a1acea4
Showing
5 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2017 Google Inc. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Install with development settings - suggest using `make install` to run | ||
|
||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: gameservers.stable.agon.io | ||
spec: | ||
group: stable.agon.io | ||
version: v1alpha1 | ||
scope: Namespaced | ||
names: | ||
kind: GameServer | ||
plural: gameservers | ||
shortNames: | ||
- gs | ||
singular: gameserver | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: gameservers-controller | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
stable.agon.io/role: controller | ||
spec: | ||
containers: | ||
- name: gameservers-controller | ||
image: ${REGISTRY}/gameservers-controller:${VERSION} | ||
imagePullPolicy: Always | ||
env: | ||
- name: ALWAYS_PULL_SIDECAR # set the sidecar imagePullPolicy to Always | ||
value: "true" | ||
- name: SIDECAR # overwrite the GameServer sidecar image that is used | ||
value: ${REGISTRY}/gameservers-sidecar:${VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Was this W on purpose? I get a validation error when trying to run it with this.