Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down