-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (32 loc) · 791 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
37
38
39
40
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
GO111MODULE=on
all: test build
build:
cd ./cmd/terraform-runner/setup-terraform-repo && GOOS=linux GOARCH=amd64 $(GOBUILD) && cd -
GOOS=linux GOARCH=amd64 $(GOBUILD) ./
test:
$(GOTEST) ./
$(GOTEST) ./pkg/poller
clean:
$(GOCLEAN)
$(GOCLEAN) ./cmd/...
make delete
fmt:
$(GOCMD) fmt ./pkg/
gen:
go mod vendor
./hack/update-codegen.sh
delete:
kubectl delete repos --all
kubectl delete -f deployment/repo-pull-controller-deployment.yaml --ignore-not-found
deploy:
make build
docker build . -f Dockerfile.terraform-runner -t terraform-runner:latest
docker build . -f Dockerfile.controller -t repo-pull-controller:latest
make delete
kubectl apply -f deployment/