agones.dev/agones@v1.54.0/examples/unity-simple/Makefile (about) 1 # Copyright 2019 Google LLC 2 # All Rights Reserved. 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 16 # 17 # Makefile for building a simple unity echo server 18 # 19 20 # __ __ _ _ _ 21 # \ \ / /_ _ _ __(_) __ _| |__ | | ___ ___ 22 # \ \ / / _` | '__| |/ _` | '_ \| |/ _ \ __| 23 # \ V / (_| | | | | (_| | |_) | | __\__ \ 24 # \_/ \__,_|_| |_|\__,_|_.__/|_|\___|___/ 25 # 26 27 REPOSITORY = us-docker.pkg.dev/agones-images/examples 28 29 mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) 30 project_path := $(dir $(mkfile_path)) 31 version := 0.3 32 server_tag = $(REPOSITORY)/unity-simple-server:$(version) 33 34 # _____ _ 35 # |_ _|_ _ _ __ __ _ ___| |_ ___ 36 # | |/ _` | '__/ _` |/ _ \ __/ __| 37 # | | (_| | | | (_| | __/ |_\__ \ 38 # |_|\__,_|_| \__, |\___|\__|___/ 39 # |___/ 40 41 build-image: 42 docker build $(project_path) --tag=$(server_tag) 43 44 # check if hosted on Google Artifact Registry 45 gar-check: 46 gcloud container images describe $(server_tag) 47 48 #output the server_tag 49 echo-image-tag: 50 @echo $(server_tag)