-
Notifications
You must be signed in to change notification settings - Fork 74
/
Makefile
22 lines (17 loc) · 816 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
POD_ANNOTATE_IMAGE="quay.io/slok/kubewebhook-pod-annotate-example"
POD_ANNOTATE_EXAMPLE="pod-annotate"
INGRESS_HOST_VALIDATOR_IMAGE="quay.io/slok/kubewebhook-ingress-host-validator-example"
INGRESS_HOST_VALIDATOR_EXAMPLE="ingress-host-validator"
# Build the development docker image
.PHONY: build-examples
build-examples:
docker build -t $(POD_ANNOTATE_IMAGE) --build-arg example=$(POD_ANNOTATE_EXAMPLE) -f ./Dockerfile ../
docker build -t $(INGRESS_HOST_VALIDATOR_IMAGE) --build-arg example=$(INGRESS_HOST_VALIDATOR_EXAMPLE) -f ./Dockerfile ../
.PHONY: push-examples
push-examples:
docker push $(POD_ANNOTATE_IMAGE)
docker push $(INGRESS_HOST_VALIDATOR_IMAGE)
.PHONY: create-certs
create-certs:
./create-certs.sh default ${POD_ANNOTATE_EXAMPLE}
./create-certs.sh default ${INGRESS_HOST_VALIDATOR_EXAMPLE}