webhook-freedns/Makefile
James Munnelly a598b0e126 Add Makefile and make options configurable
Signed-off-by: James Munnelly <james@munnelly.eu>
2019-04-29 18:47:23 +01:00

21 lines
433 B
Makefile

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"