From a2508ec626563ba893d2031a5663b3c88f10f2bf Mon Sep 17 00:00:00 2001 From: James Brechtel Date: Thu, 4 Jun 2026 15:27:28 -0400 Subject: [PATCH] feat: add Makefile with build and push targets --- Makefile | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..feb6164 --- /dev/null +++ b/Makefile @@ -0,0 +1,44 @@ +ROC_VERSION ?= 0.0.0-alpha2 +REGISTRY ?= git.roo.lol/jbrechtel + +.PHONY: build-base build-dev build-ci build-all push-base push-dev push-ci push-all + +build-base: + docker build \ + --target base \ + --build-arg ROC_VERSION=$(ROC_VERSION) \ + -t $(REGISTRY)/roc-tools-base:$(ROC_VERSION) \ + -t $(REGISTRY)/roc-tools-base:latest \ + . + +build-dev: + docker build \ + --target dev \ + --build-arg ROC_VERSION=$(ROC_VERSION) \ + -t $(REGISTRY)/roc-tools-dev:$(ROC_VERSION) \ + -t $(REGISTRY)/roc-tools-dev:latest \ + . + +build-ci: + docker build \ + --target ci \ + --build-arg ROC_VERSION=$(ROC_VERSION) \ + -t $(REGISTRY)/roc-tools-ci:$(ROC_VERSION) \ + -t $(REGISTRY)/roc-tools-ci:latest \ + . + +build-all: build-base build-dev build-ci + +push-base: + docker push $(REGISTRY)/roc-tools-base:$(ROC_VERSION) + docker push $(REGISTRY)/roc-tools-base:latest + +push-dev: + docker push $(REGISTRY)/roc-tools-dev:$(ROC_VERSION) + docker push $(REGISTRY)/roc-tools-dev:latest + +push-ci: + docker push $(REGISTRY)/roc-tools-ci:$(ROC_VERSION) + docker push $(REGISTRY)/roc-tools-ci:latest + +push-all: build-all push-base push-dev push-ci