-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 1.15 KB
/
Makefile
File metadata and controls
44 lines (35 loc) · 1.15 KB
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
41
42
43
44
VERSION=25.12.0-9
MAKEFILES_VERSION=10.6.0
.DEFAULT_GOAL:=dogu-release
GOTAG="1.26.0"
GO_ENV_VARS=CGO_ENABLED=0 GOOS=linux
include build/make/variables.mk
include build/make/self-update.mk
include build/make/bats.mk
include build/make/release.mk
include build/make/prerelease.mk
include build/make/k8s-dogu.mk
include build/make/dependencies-gomod.mk
include build/make/clean.mk
include build/make/build.mk
include build/make/test-unit.mk
include build/make/mocks.mk
SONARCARP_DIR=sonarcarp
SONARCARP_MAKEFILES=${SONARCARP_DIR}/build
STAGE_FLAG :=
ifeq ($(DEBUG),true)
STAGE_FLAG := --build-arg STAGE=debug
endif
unit-test: ${SONARCARP_MAKEFILES}
@cd ${SONARCARP_DIR} && make unit-test
mocks: ${SONARCARP_MAKEFILES}
@cd ${SONARCARP_DIR} && make mocks
compile: ${SONARCARP_MAKEFILES}
@cd ${SONARCARP_DIR} && make compile
${SONARCARP_MAKEFILES}:
@cp -r build $@
.PHONY: docker-build
docker-build: check-docker-credentials check-k8s-image-env-var ${BINARY_YQ} ## Overwrite docker-build from k8s.mk to include build arguments
@echo "Building docker image $(IMAGE)..."
@echo "Building image with STAGE_FLAG: $(STAGE_FLAG)"
@docker build . -t "$(IMAGE)" $(STAGE_FLAG)