feat: add github MCP #131
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: 'build container images' | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - '*' | |
| concurrency: | |
| group: ci-image-${{ github.head_ref || github.ref }}-${{ github.repository }} | |
| cancel-in-progress: true | |
| jobs: | |
| docker: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - mcp: duckduckgo | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: weather | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: openweathermap | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: wait | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: think | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: memory | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: shell | |
| dockerfile: ./shell/Dockerfile | |
| context: ./ | |
| - mcp: ssh | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: homeassistant | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: scripts | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: localrecall | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: twitter | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: todo | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: mailbox | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: filesystem | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: opencode | |
| dockerfile: ./opencode/Dockerfile | |
| context: ./ | |
| - mcp: codemogger | |
| dockerfile: ./codemogger/Dockerfile | |
| context: ./ | |
| - mcp: claude | |
| dockerfile: ./claude/Dockerfile | |
| context: ./ | |
| - mcp: sub-agent | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: jellyfin | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| - mcp: github | |
| dockerfile: ./Dockerfile | |
| context: ./ | |
| permissions: | |
| packages: write | |
| contents: read | |
| attestations: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@master | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@master | |
| with: | |
| platforms: all | |
| - name: Log in to the Container registry | |
| if: github.event_name != 'pull_request' | |
| uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata (tags, labels) for Docker | |
| id: meta | |
| uses: docker/metadata-action@032a4b3bda1b716928481836ac5bfe36e1feaad6 | |
| with: | |
| images: | | |
| ghcr.io/${{ github.repository }}/${{ matrix.mcp }} | |
| tags: | | |
| type=semver,pattern={{raw}} | |
| type=ref,event=branch | |
| flavor: | | |
| latest=auto | |
| prefix= | |
| suffix= | |
| - name: Build and push | |
| if: github.event_name != 'pull_request' | |
| uses: docker/build-push-action@v6 | |
| with: | |
| builder: ${{ steps.buildx.outputs.name }} | |
| context: ${{ matrix.context }} | |
| file: ${{ matrix.dockerfile }} | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| build-args: | | |
| MCP_SERVER=${{ matrix.mcp }} | |
| cache-from: type=gha,scope=${{ matrix.mcp }}-ci-image-${{ github.ref_name }} | |
| cache-to: type=gha,mode=max,scope=${{ matrix.mcp }}-ci-image-${{ github.ref_name }} | |
| - name: Build PR | |
| if: github.event_name == 'pull_request' | |
| uses: docker/build-push-action@v6 | |
| with: | |
| builder: ${{ steps.buildx.outputs.name }} | |
| context: ${{ matrix.context }} | |
| file: ${{ matrix.dockerfile }} | |
| platforms: linux/amd64,linux/arm64 | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| build-args: | | |
| MCP_SERVER=${{ matrix.mcp }} | |
| cache-from: type=gha,scope=${{ matrix.mcp }}-ci-image-main |