Skip to content

fix: add .claude/ to .gitignore #2

fix: add .claude/ to .gitignore

fix: add .claude/ to .gitignore #2

Workflow file for this run

name: docker
on:
pull_request:
push:
branches:
- main
env:
REGISTRY: docker.io
IMAGE_NAME: github-mcp-http
DOCKERHUB_NAMESPACE: nickytonline
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image for validation
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: false
tags: ${{ env.IMAGE_NAME }}:ci-${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
publish:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Validate Docker Hub secrets
run: |
set -euo pipefail
: "${DOCKERHUB_USERNAME:?Missing Docker credentials}"
: "${DOCKERHUB_TOKEN:?Missing Docker credentials}"
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ env.DOCKERHUB_NAMESPACE }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.DOCKERHUB_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Update Docker Hub description + short desc
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ${{ env.DOCKERHUB_NAMESPACE }}/${{ env.IMAGE_NAME }}
readme-filepath: ./README.md
short-description: GitHub MCP Server with HTTP streamable transport and OAuth support