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
0 commit comments