From baef5bb285022f7431777210b1f8bd1c09a9019a Mon Sep 17 00:00:00 2001 From: Jacob Howard Date: Wed, 7 May 2025 14:51:02 -0600 Subject: [PATCH] Add ce-release rule to support docker-ce-packaging Signed-off-by: Jacob Howard --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 58b5bd13..36e65775 100644 --- a/Makefile +++ b/Makefile @@ -40,6 +40,18 @@ release: GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X github.com/docker/model-cli/desktop.Version=$(VERSION)" -o dist/linux-arm64/$(PLUGIN_NAME) . @echo "Release build complete: $(PLUGIN_NAME) version '$(VERSION)'" +ce-release: + @if [ -z "$(VERSION)" ]; then \ + echo "Error: VERSION parameter is required. Use: make release VERSION=x.y.z"; \ + exit 1; \ + fi + @if [ "$(uname -s)" != "Linux" ]; then \ + echo "Warning: This release target is designed for Linux"; \ + fi + @echo "Building local release version '$(VERSION)'..." + GOOS=linux go build -ldflags="-s -w -X github.com/docker/model-cli/desktop.Version=$(VERSION)" -o dist/$(PLUGIN_NAME) . + @echo "Local release build complete: $(PLUGIN_NAME) version '$(VERSION)'" + mock: @echo "Generating mocks..." @mkdir -p mocks