argo-cd/gitops-engine/Makefile
Blake Pettersson 3dcc91cb3a
chore(gitops-engine): migrate to mockery (#27696)
Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-05 13:02:34 -04:00

28 lines
719 B
Makefile

# 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