mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-28 07:41:27 +00:00
ci: release MCP binaries + path-gate heavyweight jobs
- build-cli.sh also builds containr-mcp-<os>-<arch> per platform; the existing containr-* asset glob in the release job picks them up - paths-filter 'changes' job gates backend/frontend/smoke/docker on PRs — docs-only PRs skip ~10min of compute; skipped checks satisfy protection - docker job requires success() explicitly (skipped parents would pass '!= failure'); release requires docker success to never release stale images Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
b3da014d26
commit
57f8b4f56e
2 files changed
+39
-4
No files matched your search
+10
-3
@@ -21,18 +21,25 @@ for platform in $PLATFORMS; do
|
||||
GOARCH=${platform#*/}
|
||||
|
||||
OUTPUT_NAME="containr-${GOOS}-${GOARCH}"
|
||||
MCP_NAME="containr-mcp-${GOOS}-${GOARCH}"
|
||||
if [ "$GOOS" = "windows" ]; then
|
||||
OUTPUT_NAME="${OUTPUT_NAME}.exe"
|
||||
MCP_NAME="${MCP_NAME}.exe"
|
||||
fi
|
||||
|
||||
echo "📦 Building for ${platform}..."
|
||||
|
||||
echo "📦 Building CLI for ${platform}..."
|
||||
GOOS=$GOOS GOARCH=$GOARCH go build \
|
||||
-ldflags "$LDFLAGS" \
|
||||
-o "bin/${OUTPUT_NAME}" \
|
||||
./cmd/cli
|
||||
|
||||
echo "✅ Built bin/${OUTPUT_NAME}"
|
||||
echo "📦 Building MCP server for ${platform}..."
|
||||
GOOS=$GOOS GOARCH=$GOARCH go build \
|
||||
-ldflags "$LDFLAGS" \
|
||||
-o "bin/${MCP_NAME}" \
|
||||
./cmd/mcp
|
||||
|
||||
echo "✅ Built bin/${OUTPUT_NAME} + bin/${MCP_NAME}"
|
||||
done
|
||||
|
||||
echo "🎉 CLI build complete!"
|
||||
|
||||
Reference in new issue
Block a user