diff --git a/.gitignore b/.gitignore index 135adc75872..3b5e7d66d22 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ blocksconvert cortex query-tee test-exporter + +# This is custom Makefile modification, if it exists. +Makefile.local diff --git a/Makefile b/Makefile index 36183b21840..a037f2f2680 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +# Local settings (optional). See Makefile.local.example for an example. +# WARNING: do not commit to a repository! +-include Makefile.local + .PHONY: all test clean images protos exes dist doc clean-doc check-doc .DEFAULT_GOAL := all diff --git a/Makefile.local.example b/Makefile.local.example new file mode 100644 index 00000000000..7faa0bb13c9 --- /dev/null +++ b/Makefile.local.example @@ -0,0 +1,10 @@ +# Example of extending Makefile with Makefile.local. + +BUILD_IMAGE ?= quay.io/cortexproject/build-image +IMAGE_PREFIX ?= custom-prefix/ + +blocksconvert-push: cmd/blocksconvert/.uptodate + docker push $(IMAGE_PREFIX)blocksconvert:$(IMAGE_TAG) + +cortex-push: cmd/cortex/.uptodate + docker push $(IMAGE_PREFIX)cortex:$(IMAGE_TAG)