Skip to main content
Glama

MCP Files

by OrionPotter
docker-publish.shโ€ข1.38 kB
#!/bin/bash set -e DRY_RUN=false if [[ "$1" == "--dry-run" ]]; then DRY_RUN=true fi # Execute command or just echo it based on dry-run flag run() { if [[ "$DRY_RUN" == "true" ]]; then echo " [DRY] $*" else "$@" fi } # Read package info from package.json PACKAGE_NAME=$(jq -r '.name' package.json) PACKAGE_VERSION=$(jq -r '.version' package.json) # Extract GitHub username from git remote URL GIT_URL=$(git config --get remote.origin.url) GITHUB_USER=$(echo "$GIT_URL" | sed -E 's|.*[:/]([^/]+)/.*|\1|') DOCKER_REPO="${GITHUB_USER}/${PACKAGE_NAME}" echo "๐Ÿ“ฆ Publishing ${PACKAGE_NAME} v${PACKAGE_VERSION} to Docker Hub..." echo "๐Ÿ™ GitHub user: ${GITHUB_USER}" # Build the Docker image echo "๐Ÿ”จ Building Docker image..." run docker build -t "${DOCKER_REPO}" . # Push latest tag echo "๐Ÿš€ Pushing ${DOCKER_REPO}:latest..." run docker push "${DOCKER_REPO}" # Tag and push specific version echo "๐Ÿท๏ธ Tagging and pushing ${DOCKER_REPO}:${PACKAGE_VERSION}..." run docker tag "${DOCKER_REPO}" "${DOCKER_REPO}:${PACKAGE_VERSION}" run docker push "${DOCKER_REPO}:${PACKAGE_VERSION}" echo "โœ… Successfully published to Docker Hub!" echo " Latest: ${DOCKER_REPO}:latest" echo " Version: ${DOCKER_REPO}:${PACKAGE_VERSION}" if [[ "$DRY_RUN" == "true" ]]; then echo "" echo "๐Ÿ’ก This was a dry run. Run without --dry-run to actually publish." fi

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OrionPotter/flesler-mcp-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server