Skip to main content
Glama
docker-build.yml1.8 kB
name: Build ARM64 Docker Image on: push: branches: [main, master] pull_request: branches: [main, master] workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v2 with: platforms: arm64 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub (optional) uses: docker/login-action@v2 if: github.event_name != 'pull_request' with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Extract metadata id: meta uses: docker/metadata-action@v4 with: images: | ${{ secrets.DOCKER_USERNAME }}/stock-mcp-server tags: | type=ref,event=branch type=ref,event=pr type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=raw,value=latest,enable={{is_default_branch}} - name: Build and push uses: docker/build-push-action@v4 with: context: . platforms: linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max - name: Test image if: github.event_name == 'pull_request' run: | docker run --rm --platform linux/arm64 \ -e REDIS_HOST=localhost \ ${{ steps.meta.outputs.tags }} \ python -c "import sys; print(f'Python {sys.version}'); print('Image test passed!')"

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/huweihua123/stock-mcp'

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