mirror of
https://github.com/jmozd/cert-manager-webhook-variomedia.git
synced 2026-10-23 04:22:03 +02:00
Add Makefile and make options configurable
Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
1 parent
8d973b09a6
commit
a598b0e126
4 files changed
+27
-34
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user