Build Vector DB and Push MCP Container #5
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 Vector DB and Push MCP Container | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Version number for the arm-mcp tag' | |
| required: true | |
| type: string | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-push: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push MCP server multi-arch image | |
| working-directory: ./mcp-local | |
| run: | | |
| docker buildx build \ | |
| --platform linux/arm64,linux/amd64 \ | |
| -t joestech324/mcp:arm-mcp-${{ inputs.version }} \ | |
| -t joestech324/mcp:latest \ | |
| . \ | |
| --push |