forked from snowdrop/godaddy-webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 811 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
VERSION ?= 0.0.666
IMAGE_NAME := "quay.io/snowdrop/cert-manager-webhook-godaddy"
IMAGE_TAG := "latest"
TEST_ZONE_NAME ?= example.com.
OUT := $(shell pwd)/_out
$(shell mkdir -p "$(OUT)")
verify:
sh ./scripts/fetch-test-binaries.sh
go test -v .
test:
TEST_ZONE_NAME=$(TEST_ZONE_NAME) go test .
compile:
go mod download -json
CGO_ENABLED=0 go build -o webhook -ldflags '-w -extldflags "-static"' .
build:
docker build -t "$(IMAGE_NAME):$(IMAGE_TAG)" .
push:
docker push "$(IMAGE_NAME):$(IMAGE_TAG)"
.PHONY: rendered-manifest.yaml
rendered-manifest.yaml:
helm template \
--name godaddy-webhook \
--set image.repository=$(IMAGE_NAME) \
--set image.tag=$(IMAGE_TAG) \
deploy/godaddy-webhook > "$(OUT)/rendered-manifest.yaml"
version:
@echo $(VERSION)