Skip to main content
Glama
8b-is
by 8b-is
feedback-worker.yml3.05 kB
name: Feedback Worker CI/CD on: push: branches: [ main ] paths: - 'feedback-worker/**' - 'feedback-api/**' - '.github/workflows/feedback-worker.yml' pull_request: branches: [ main ] paths: - 'feedback-worker/**' - 'feedback-api/**' env: REGISTRY: ghcr.io IMAGE_NAME_API: ${{ github.repository }}-feedback-api IMAGE_NAME_WORKER: ${{ github.repository }}-feedback-worker jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: submodules: 'recursive' recursive: 2 lfs: 1 - name: Install git-lfs run: | sudo apt-get update sudo apt-get upgrade -y sudo apt-get install -y git-lfs git lfs install sudo apt-get clean sudo rm -rf /var/lib/apt/lists/* - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.14' - name: Install uv run: | curl -LsSf https://astral.sh/uv/install.sh | sh echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Test feedback worker working-directory: ./feedback-worker run: | uv venv source .venv/bin/activate uv pip install -r requirements.txt uv pip install pytest pytest-asyncio python -m pytest tests/ -v || true # Allow failure for now - name: Lint with ruff working-directory: ./feedback-worker run: | source .venv/bin/activate uv pip install ruff ruff check . || true # Allow failure for now build-and-push: needs: test runs-on: self-hosted if: github.event_name == 'push' && github.ref == 'refs/heads/main' permissions: contents: read packages: write steps: - uses: actions/checkout@v4 - name: Log in to Container Registry uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push API image uses: docker/build-push-action@v5 with: context: ./feedback-api push: true tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_API }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_API }}:${{ github.sha }} - name: Build and push Worker image uses: docker/build-push-action@v5 with: context: ./feedback-worker push: true tags: | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_WORKER }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_WORKER }}:${{ github.sha }} deploy: needs: build-and-push runs-on: ubuntu-latest if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - name: Deploy to production run: | echo "Deploy to production server via SSH or webhook" # Add actual deployment steps here # Example: SSH to server and run docker-compose pull && docker-compose up -d

Latest Blog Posts

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/8b-is/smart-tree'

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