Repository navigation
66 lines (57 loc) · 1.71 KB
/
Copy pathdocs-mcp.yml
File metadata and controls
66 lines (57 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build & Publish Docs MCP Server
on:
pull_request:
paths:
- "docs-mcp/**"
- ".github/workflows/docs-mcp.yml"
push:
branches: [main]
paths:
- "docs-mcp/**"
- "pages/**"
- ".github/workflows/docs-mcp.yml"
workflow_dispatch:
permissions:
contents: read
packages: write
concurrency:
group: docs-mcp-image
cancel-in-progress: false
env:
IMAGE: ghcr.io/${{ github.repository }}/docs-mcp-server
jobs:
build-and-push:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Test MCP canaries
run: node --test docs-mcp/*.test.mjs
- name: Log in to GitHub Container Registry
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: build
uses: docker/build-push-action@v6
with:
context: ./docs-mcp
push: ${{ github.event_name == 'push' }}
build-args: |
DOCS_REVISION=${{ github.sha }}
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:sha-${{ github.sha }}
- name: Record published release
if: github.event_name == 'push'
run: |
{
echo "### Docs MCP image published"
echo
echo "- Source: \`${{ github.sha }}\`"
echo "- Digest: \`${{ steps.build.outputs.digest }}\`"
echo "- GitOps: \`genlayerlabs/devexp-argocd-apps\` promotes \`sha-${{ github.sha }}\` by immutable digest and waits for production verification"
} >> "$GITHUB_STEP_SUMMARY"