Skip to main content
Glama
publish-images.yml1.68 kB
name: Build and push Docker images on: workflow_dispatch: push: branches: ["main"] # Only publish when pushing to main tags: ["v*"] # Or when pushing a version tag pull_request: branches: ["main"] # Always build and validate on PRs permissions: contents: read packages: write env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} jobs: build-and-push-images: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Log in to GHCR uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (snak-api) id: meta-snak-api uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/snak-api tags: | type=ref,event=branch type=sha,format=short type=ref,event=tag type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} - name: Build and push Docker image (snak-api) uses: docker/build-push-action@v6 with: context: . file: ./packages/server/Dockerfile push: ${{ github.event_name != 'pull_request' }} # build only on PR platforms: linux/amd64 tags: ${{ steps.meta-snak-api.outputs.tags }} labels: ${{ steps.meta-snak-api.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max

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/KasarLabs/snak'

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