summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJames Munnelly <munnerz@users.noreply.github.com>2019-04-29 18:48:04 +0100
committerGitHub <noreply@github.com>2019-04-29 18:48:04 +0100
commitf06ad32f094c0d8e4fe1801d0775771b5de19009 (patch)
tree8638b1e79253b8fbca0623e4f6586b9e8bff1187 /Makefile
parent3935fd70e743931e6322bf088cd3e1c866f2e2cd (diff)
parenta598b0e12668be45d7346f761b0b00432e40fa11 (diff)
downloadcert-manager-webhook-hostinger-f06ad32f094c0d8e4fe1801d0775771b5de19009.tar.gz
cert-manager-webhook-hostinger-f06ad32f094c0d8e4fe1801d0775771b5de19009.zip
Merge pull request #1 from munnerz/deployment-updates
Build and deployment fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e69de29..bddb85d 100644
--- a/Makefile
+++ b/Makefile
@@ -0,0 +1,20 @@
+IMAGE_NAME := "webhook"
+IMAGE_TAG := "latest"
+
+OUT := $(shell pwd)/_out
+
+$(shell mkdir -p "$(OUT)")
+
+verify:
+ go test -v .
+
+build:
+ docker build -t "$(IMAGE_NAME):$(IMAGE_TAG)" .
+
+.PHONY: rendered-manifest.yaml
+rendered-manifest.yaml:
+ helm template \
+ --name example-webhook \
+ --set image.repository=$(IMAGE_NAME) \
+ --set image.tag=$(IMAGE_TAG) \
+ deploy/example-webhook > "$(OUT)/rendered-manifest.yaml"