REGISTRY          ?= tidbcloud
IMAGE_REPOSITORY  := $(REGISTRY)/mysql-readiness-probe
IMG ?= $(IMAGE_REPOSITORY):latest
GOOS ?= "linux"
GOARCH ?= $(shell go env GOARCH)

build:
	CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags="-s -w" -o mysql-readiness-probe main.go

docker-build:
	docker build -t $(IMG) .
