forked from argoproj/gitops-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 847 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
# docker image publishing options
DOCKER_PUSH?=false
IMAGE_NAMESPACE?=
IMAGE_TAG?=latest
ifdef IMAGE_NAMESPACE
IMAGE_PREFIX=${IMAGE_NAMESPACE}/
endif
.PHONY: generate
generate: agent-manifests
.PHONY: test
test:
go test -race ./... -coverprofile=coverage.out
.PHONY: lint
lint:
golangci-lint run
.PHONY: agent-image
agent-image:
docker build -t $(IMAGE_PREFIX)gitops-agent . -f Dockerfile
@if [ "$(DOCKER_PUSH)" = "true" ] ; then docker push $(IMAGE_PREFIX)gitops-agent:$(IMAGE_TAG) ; fi
.PHONY: agent-manifests
agent-manifests:
kustomize build ./agent/manifests/cluster-install > ./agent/manifests/install.yaml
kustomize build ./agent/manifests/namespace-install > ./agent/manifests/install-namespaced.yaml
.PHONY: generate-mocks
generate-mocks:
go generate -x -v "github.com/argoproj/gitops-engine/pkg/utils/tracing/tracer_testing"