Skip to main content
Glama

AI Tutoring RAG System

deploy.ymlโ€ข3.66 kB
name: Build, Push and Deploy to Azure Container Apps on: push: branches: - main env: DOCKER_REPOSITORY: ${{ secrets.DOCKER_USERNAME }} IMAGE_TAG: ${{ github.run_number }} RESOURCE_GROUP: 'ai-tutor-rg' ACA_HOST_NAME: 'mcp-host' ACA_RAG_NAME: 'rag-mcp-server' jobs: build_and_push: runs-on: ubuntu-latest outputs: images_pushed: true steps: - name: Checkout Repository uses: actions/checkout@v4 # Step 1: Log in to Docker Hub - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} # Step 2: Set up Docker Buildx for multi-platform builds - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 # --- Build and Push mcp-host image --- # Step 3: Build and push mcp-host - name: Build and Push mcp-host uses: docker/build-push-action@v5 with: context: ./ file: ./Dockerfile.mcp_host push: true tags: ${{ env.DOCKER_REPOSITORY }}/mcp-host:${{ env.IMAGE_TAG }} cache-from: type=gha cache-to: type=gha,mode=max # --- Build and Push rag-server image --- # Step 4: Build and push rag-server - name: Build and Push rag-server uses: docker/build-push-action@v5 with: context: ./ file: ./Dockerfile.rag_server push: true tags: ${{ env.DOCKER_REPOSITORY }}/rag-server:${{ env.IMAGE_TAG }} cache-from: type=gha cache-to: type=gha,mode=max deploy_to_aca: runs-on: ubuntu-latest needs: build_and_push environment: Production steps: # Step 1: Login to Azure using Service Principal credentials - name: Log in to Azure uses: azure/login@v1 with: creds: ${{ secrets.AZURE_CREDENTIALS }} # Step 2: Deploy mcp-host image to Azure Container Apps - name: Deploy mcp-host to ACA uses: azure/container-apps-deploy-action@v1 with: imageToDeploy: ${{ env.DOCKER_REPOSITORY }}/mcp-host:${{ env.IMAGE_TAG }} containerAppName: ${{ env.ACA_HOST_NAME }} resourceGroup: ${{ env.RESOURCE_GROUP }} acrUsername: ${{ secrets.DOCKER_USERNAME }} acrPassword: ${{ secrets.DOCKER_PASSWORD }} env: | POSTGRES_USER=${{ secrets.POSTGRES_USER }} POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} POSTGRES_HOST=${{ secrets.POSTGRES_HOST }} POSTGRES_PORT=${{ secrets.POSTGRES_PORT }} POSTGRES_DB=${{ secrets.POSTGRES_DB }} OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} REDIS_URL=${{ secrets.REDIS_URL }} PINECONE_API_KEY=${{ secrets.PINECONE_API_KEY }} PINECONE_ENVIRONMENT=${{ secrets.PINECONE_ENVIRONMENT }} LLM_API_KEY=${{ secrets.LLM_API_KEY }} OMNI_MEMORY_PROVIDER=Pinecone # Step 3: Deploy rag-server image to Azure Container Apps - name: Deploy rag-server to ACA uses: azure/container-apps-deploy-action@v1 with: imageToDeploy: ${{ env.DOCKER_REPOSITORY }}/rag-server:${{ env.IMAGE_TAG }} containerAppName: ${{ env.ACA_RAG_NAME }} resourceGroup: ${{ env.RESOURCE_GROUP }} acrUsername: ${{ secrets.DOCKER_USERNAME }} acrPassword: ${{ secrets.DOCKER_PASSWORD }} # Step 4: Logout of Azure - name: Azure Logout run: az logout

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/Chukwuebuka-2003/ebuka_mcps'

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