Skip to content

Commit

Permalink
Mount point for helm config
Browse files Browse the repository at this point in the history
This allows repository information to be saved
between invocations of the build image.
  • Loading branch information
markmandel committed Oct 11, 2018
1 parent d6858e2 commit 754942f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@ agones_path := $(realpath $(build_path)/..)
kubeconfig_path := $(dir $(KUBECONFIG))
kubeconfig_file := $(notdir $(KUBECONFIG))

helm_path := ~/.helm

agones_package = agones.dev/agones
mount_path = /go/src/$(agones_package)
common_mounts = -v $(build_path)/.config/gcloud:/root/.config/gcloud \
-v $(kubeconfig_path):/root/.kube \
-v $(helm_path):/root/.helm \
-v $(agones_path):$(mount_path)

build_tag = agones-build:$(build_version)
Expand Down Expand Up @@ -271,6 +274,7 @@ clean-build-image:
ensure-build-config:
-mkdir -p $(kubeconfig_path)
-mkdir -p $(build_path)/.config/gcloud
-mkdir -p $(helm_path)

# create the build image if it doesn't exist
ensure-build-image: ensure-build-config
Expand Down

0 comments on commit 754942f

Please sign in to comment.