forked from sysdiglabs/promcat-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (18 loc) · 904 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
.PHONY: test build push
test:
GO15VENDOREXPERIMENT=0 ginkgo -r .
dev:
RESOURCES_PATH=test/fixtures/resources VENDOR_PATH=test/fixtures/vendors go run cmd/server/main.go
watch:
ag -l | entr -c go test -v ./...
build:
docker build -f Dockerfile.server -t gcr.io/mateo-burillo-ns/securityhub-backend .
docker build -f Dockerfile.dbimport -t gcr.io/mateo-burillo-ns/securityhub-dbimport .
push: build
docker push gcr.io/mateo-burillo-ns/securityhub-backend
docker push gcr.io/mateo-burillo-ns/securityhub-dbimport
deploy: deploy-backend deploy-frontend
deploy-backend:
kubectl -n securityhub patch deployment backend -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$(shell date +%s)\"}}}}}"
deploy-frontend:
kubectl -n securityhub patch deployment frontend -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$(shell date +%s)\"}}}}}"