Revert "use build-in MCPServerTool" #20
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 and Push Container | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| release: | |
| types: [published] | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to Container Registry | |
| if: github.event_name != 'pull_request' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract metadata for web | |
| id: meta-web | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=ref,event=branch,suffix=-web | |
| type=ref,event=pr,suffix=-web | |
| type=semver,pattern={{version}},suffix=-web | |
| type=semver,pattern={{major}}.{{minor}},suffix=-web | |
| type=sha,suffix=-web | |
| - name: Extract metadata for worker | |
| id: meta-worker | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
| tags: | | |
| type=ref,event=branch,suffix=-worker | |
| type=ref,event=pr,suffix=-worker | |
| type=semver,pattern={{version}},suffix=-worker | |
| type=semver,pattern={{major}}.{{minor}},suffix=-worker | |
| type=sha,suffix=-worker | |
| - name: Build and push web | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| target: web | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: ${{ steps.meta-web.outputs.tags }} | |
| labels: ${{ steps.meta-web.outputs.labels }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Build and push worker | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| target: worker | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: ${{ steps.meta-worker.outputs.tags }} | |
| labels: ${{ steps.meta-worker.outputs.labels }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |