Skip to content

[MCP Authentication] Add Sub Path Protected Resource Metadata (PRM) S… #11

[MCP Authentication] Add Sub Path Protected Resource Metadata (PRM) S…

[MCP Authentication] Add Sub Path Protected Resource Metadata (PRM) S… #11

Workflow file for this run

name: Build and Publish Gateway Container Image
on:
workflow_dispatch:
push:
branches: [main]
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Restore dependencies
run: dotnet restore dotnet/Microsoft.McpGateway.sln --runtime linux-x64
- name: Publish and push the container image
run: dotnet publish dotnet/Microsoft.McpGateway.Service/src/Microsoft.McpGateway.Service.csproj --configuration Release --no-restore /p:PublishProfile=github.pubxml /p:ContainerRepository=${{ github.repository }}