From 396477c2e2be5fcb941c63d099df5e53ad3a23c5 Mon Sep 17 00:00:00 2001 From: Owen Date: Wed, 29 Oct 2025 20:42:56 -0700 Subject: [PATCH] Update makefiles --- Makefile | 30 ++++++++++++++++++++++++++++++ install/Makefile | 6 +++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c90bd180..6c538a47 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,36 @@ build-release: --tag fosrl/pangolin:ee-postgresql-$(tag) \ --push . +build-rc: + @if [ -z "$(tag)" ]; then \ + echo "Error: tag is required. Usage: make build-release tag="; \ + exit 1; \ + fi + docker buildx build \ + --build-arg BUILD=oss \ + --build-arg DATABASE=sqlite \ + --platform linux/arm64,linux/amd64 \ + --tag fosrl/pangolin:$(tag) \ + --push . + docker buildx build \ + --build-arg BUILD=oss \ + --build-arg DATABASE=pg \ + --platform linux/arm64,linux/amd64 \ + --tag fosrl/pangolin:postgresql-$(tag) \ + --push . + docker buildx build \ + --build-arg BUILD=enterprise \ + --build-arg DATABASE=sqlite \ + --platform linux/arm64,linux/amd64 \ + --tag fosrl/pangolin:ee-$(tag) \ + --push . + docker buildx build \ + --build-arg BUILD=enterprise \ + --build-arg DATABASE=pg \ + --platform linux/arm64,linux/amd64 \ + --tag fosrl/pangolin:ee-postgresql-$(tag) \ + --push . + build-arm: docker buildx build --platform linux/arm64 -t fosrl/pangolin:latest . diff --git a/install/Makefile b/install/Makefile index 8b65cadd..53365f50 100644 --- a/install/Makefile +++ b/install/Makefile @@ -18,7 +18,11 @@ put-back: mv main.go.bak main.go dev-update-versions: - PANGOLIN_VERSION=$$(curl -s https://api.github.com/repos/fosrl/pangolin/tags | jq -r '.[0].name') && \ + if [ -z "$(tag)" ]; then \ + PANGOLIN_VERSION=$$(curl -s https://api.github.com/repos/fosrl/pangolin/tags | jq -r '.[0].name'); \ + else \ + PANGOLIN_VERSION=$(tag); \ + fi && \ GERBIL_VERSION=$$(curl -s https://api.github.com/repos/fosrl/gerbil/tags | jq -r '.[0].name') && \ BADGER_VERSION=$$(curl -s https://api.github.com/repos/fosrl/badger/tags | jq -r '.[0].name') && \ echo "Latest versions - Pangolin: $$PANGOLIN_VERSION, Gerbil: $$GERBIL_VERSION, Badger: $$BADGER_VERSION" && \