Skip to content

Commit c9a5b2f

Browse files
authored
initial commit of github actions for mcp builds (#34)
* initial commit of mcp builds Signed-off-by: Ryan Cook <[email protected]> * include deployment changes Signed-off-by: Ryan Cook <[email protected]> * only push on main Signed-off-by: Ryan Cook <[email protected]> * test openshift build --------- Signed-off-by: Ryan Cook <[email protected]>
1 parent 6edae5f commit c9a5b2f

File tree

5 files changed

+111
-12
lines changed

5 files changed

+111
-12
lines changed

.github/workflows/mcp-builds.yaml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: MCP builds
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
ansible:
11+
runs-on: ubuntu-latest
12+
environment: ci
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: login to quay.io
18+
uses: docker/login-action@v3
19+
with:
20+
registry: quay.io
21+
username: ${{ secrets.QUAY_USERNAME }}
22+
password: ${{ secrets.QUAY_PASSWORD }}
23+
24+
- name: build and push the ansible mcp server
25+
run: |
26+
cd mcp-servers/ansible
27+
curl -ssL -o submodule/mcp/ansible.py https://raw.githubusercontent.com/suppathak/mcp/refs/heads/main/ansible.py
28+
podman build -t quay.io/redhat-et/mcp-ansible:latest .
29+
30+
- name: push the ansible mcp server when merge into main
31+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
32+
run: |
33+
podman push quay.io/redhat-et/mcp-ansible:latest
34+
35+
custom:
36+
runs-on: ubuntu-latest
37+
environment: ci
38+
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v4
41+
42+
- name: login to quay.io
43+
uses: docker/login-action@v3
44+
with:
45+
registry: quay.io
46+
username: ${{ secrets.QUAY_USERNAME }}
47+
password: ${{ secrets.QUAY_PASSWORD }}
48+
49+
- name: build and push the custom mcp server
50+
run: |
51+
cd mcp-servers/custom
52+
podman build -t quay.io/redhat-et/mcp-custom:latest .
53+
54+
- name: push the ansible mcp server when merge into main
55+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
56+
run: |
57+
podman push quay.io/redhat-et/mcp-custom:latest
58+
59+
github:
60+
runs-on: ubuntu-latest
61+
environment: ci
62+
steps:
63+
- name: Checkout code
64+
uses: actions/checkout@v4
65+
66+
- name: login to quay.io
67+
uses: docker/login-action@v3
68+
with:
69+
registry: quay.io
70+
username: ${{ secrets.QUAY_USERNAME }}
71+
password: ${{ secrets.QUAY_PASSWORD }}
72+
73+
- name: build and push the github mcp server
74+
run: |
75+
cd mcp-servers/github
76+
podman build -t quay.io/redhat-et/mcp-github:latest .
77+
78+
- name: push the ansible mcp server when merge into main
79+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
80+
run: |
81+
podman push quay.io/redhat-et/mcp-github:latest
82+
83+
openshift:
84+
runs-on: ubuntu-latest
85+
environment: ci
86+
steps:
87+
- name: Checkout code
88+
uses: actions/checkout@v4
89+
90+
- name: login to quay.io
91+
uses: docker/login-action@v3
92+
with:
93+
registry: quay.io
94+
username: ${{ secrets.QUAY_USERNAME }}
95+
password: ${{ secrets.QUAY_PASSWORD }}
96+
97+
- name: build and push the openshift mcp server
98+
run: |
99+
cd mcp-servers/openshift
100+
podman build -t quay.io/redhat-et/mcp-openshift:latest .
101+
102+
- name: push the ansible mcp server when merge into main
103+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
104+
run: |
105+
podman push quay.io/redhat-et/mcp-openshift:latest

kubernetes/mcp-servers/ansible-mcp/ansible-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ spec:
1414
spec:
1515
containers:
1616
- name: ansible-mcp-server
17-
image: quay.io/supathak/ansible-mcp:amd-0.1.0
17+
image: quay.io/redhat-et/mcp-ansible:latest
18+
imagePullPolicy: Always
1819
ports:
1920
- containerPort: 8000
2021
protocol: TCP

kubernetes/mcp-servers/custom-mcp/custom-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ spec:
1414
spec:
1515
containers:
1616
- name: custom-mcp-server
17-
image: quay.io/rh-ee-anxie/mcp-custom-server:latests
17+
image: quay.io/redhat-et/mcp-custom:latest
18+
imagePullPolicy: Always
1819
ports:
1920
- containerPort: 8000
2021
protocol: TCP

kubernetes/mcp-servers/github-mcp/github-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ spec:
1414
spec:
1515
containers:
1616
- name: github-mcp-server-with-rh-nodejs
17-
image: quay.io/rh-ee-yuan/github_mcp_server:latest
17+
image: quay.io/redhat-et/mcp-github:latest
18+
imagePullPolicy: Always
1819
command: ["/bin/sh", "-c"]
1920
args:
2021
- |

mcp-servers/ansible/aap-secret.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)