forked from mariadb-operator/mariadb-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (38 loc) · 1.39 KB
/
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
41
42
43
44
45
46
47
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
ifndef ignore-not-found
ignore-not-found = false
endif
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec
VERSION ?= 0.0.26
IMG ?= ghcr.io/mariadb-operator/mariadb-operator:v$(VERSION)
IMG_ENT ?= mariadb/mariadb-operator-enterprise:v$(VERSION)
RELATED_IMAGE_MARIADB ?= mariadb:11.2.2
RELATED_IMAGE_MARIADB_ENT ?= us-central1-docker.pkg.dev/mariadb-es-docker-registry/enterprise-docker/enterprise-server:10.6
# RELATED_IMAGE_MARIADB_ENT ?= docker.mariadb.com/enterprise-server:10.6
# TODO: certify image. UBI based and multi-arch.
RELATED_IMAGE_MAXSCALE ?= mariadb/maxscale:23.08
RELATED_IMAGE_EXPORTER ?= prom/mysqld-exporter:v0.15.1
DOCKER_CONFIG ?= $(HOME)/.docker/config.json
.PHONY: all
all: help
##@ General
.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
.PHONY: version
version: ## Get current version.
@echo $(VERSION)
include make/build.mk
include make/deploy.mk
include make/deps.mk
include make/dev.mk
include make/gen.mk
include make/net.mk
include make/olm.mk
include make/pki.mk