-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 783 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 783 Bytes
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
SHELL := /bin/bash
COMPOSE ?= docker compose
COMPOSE_FILES := -f docker-compose.yml -f docker-compose.integration.yml
KUBECTL ?= kubectl
.PHONY: integration-test
integration-test:
@set -euo pipefail; \
status=0; \
$(COMPOSE) $(COMPOSE_FILES) up --build --exit-code-from integration-tests integration-tests || status=$$?; \
$(COMPOSE) $(COMPOSE_FILES) down -v; \
exit $$status
.PHONY: test
test: integration-test
.PHONY: k8s-apply-local
k8s-apply-local:
$(KUBECTL) apply -k k8s/overlays/local
.PHONY: k8s-delete-local
k8s-delete-local:
$(KUBECTL) delete -k k8s/overlays/local
.PHONY: k8s-apply-production
k8s-apply-production:
$(KUBECTL) apply -k k8s/overlays/production
.PHONY: k8s-delete-production
k8s-delete-production:
$(KUBECTL) delete -k k8s/overlays/production