Skip to main content
Glama
cd.yml1.83 kB
name: Build and Push Docker Image to GHCR on: push: branches: [main] workflow_dispatch: jobs: build-and-push: runs-on: ubuntu-latest permissions: contents: write packages: write steps: - name: Checkout code uses: actions/checkout@v4 - name: Set lowercased owner id: repo_owner run: echo "owner=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Log in to GitHub Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Extract short SHA id: vars run: echo "sha_short=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile push: true tags: | ghcr.io/${{ steps.repo_owner.outputs.owner }}/bitbucket-mcp:latest ghcr.io/${{ steps.repo_owner.outputs.owner }}/bitbucket-mcp:${{ steps.vars.outputs.sha_short }} - name: Create GitHub Release if: github.ref == 'refs/heads/main' uses: softprops/action-gh-release@v2 with: tag_name: ${{ steps.vars.outputs.sha_short }} name: Release ${{ steps.vars.outputs.sha_short }} body: | Docker images published: - ghcr.io/${{ steps.repo_owner.outputs.owner }}/bitbucket-mcp:latest - ghcr.io/${{ steps.repo_owner.outputs.owner }}/bitbucket-mcp:${{ steps.vars.outputs.sha_short }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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/Ibrahimogod/bitbucket-mcp'

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