Skip to content

Commit 51bd9b9

Browse files
author
s_
committed
FFF: Happy Weekend! Rain! Rain! Brain! Drain! Crane! Grain!
1 parent 23ec003 commit 51bd9b9

4 files changed

Lines changed: 70 additions & 2 deletions

File tree

.github/workflows/docker.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Docker Build
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
docker-build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v3
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Login to Docker Hub
23+
if: github.event_name != 'pull_request'
24+
uses: docker/login-action@v3
25+
with:
26+
username: ${{ secrets.DOCKER_USERNAME }}
27+
password: ${{ secrets.DOCKER_PASSWORD }}
28+
29+
- name: Extract metadata
30+
id: meta
31+
uses: docker/metadata-action@v5
32+
with:
33+
images: s13dc/gitlab-mcp-server
34+
tags: |
35+
type=ref,event=branch
36+
type=ref,event=pr
37+
type=sha,prefix={{branch}}-
38+
39+
- name: Build and push multi-arch
40+
uses: docker/build-push-action@v5
41+
with:
42+
context: .
43+
file: ./docker/Dockerfile
44+
platforms: linux/amd64,linux/arm64
45+
push: ${{ github.event_name != 'pull_request' }}
46+
tags: ${{ steps.meta.outputs.tags }}
47+
labels: ${{ steps.meta.outputs.labels }}
48+
cache-from: type=gha
49+
cache-to: type=gha,mode=max
50+
51+
- name: Test multi-arch build
52+
if: github.event_name == 'pull_request'
53+
uses: docker/build-push-action@v5
54+
with:
55+
context: .
56+
file: ./docker/Dockerfile
57+
platforms: linux/amd64,linux/arm64
58+
push: false
59+
cache-from: type=gha
60+
cache-to: type=gha,mode=max

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v4
4242

43+
- name: Set up QEMU
44+
uses: docker/setup-qemu-action@v3
45+
4346
- name: Set up Docker Buildx
4447
uses: docker/setup-buildx-action@v3
4548

@@ -53,11 +56,12 @@ jobs:
5356
id: version
5457
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
5558

56-
- name: Build and push
59+
- name: Build and push multi-arch
5760
uses: docker/build-push-action@v5
5861
with:
5962
context: .
6063
file: ./docker/Dockerfile
64+
platforms: linux/amd64,linux/arm64
6165
push: true
6266
tags: |
6367
s13dc/gitlab-mcp-server:latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# EGMA: Enhanced GitLab MCP API
1+
# EGMA: Enhanced GitLab MCP API Server
22

33
A Model Context Protocol (MCP) server for GitLab integration, built with the official **python-gitlab SDK**. Provides AI assistants with intelligent GitLab access through 143+ specialized tools.
44

docker/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ FROM python:3.11-slim
22

33
WORKDIR /app
44

5+
# Add metadata for multi-arch support
6+
LABEL org.opencontainers.image.source="https://github.com/13shivam/gitlab-mcp-server"
7+
LABEL org.opencontainers.image.description="GitLab MCP Server - Multi-architecture support"
8+
59
# Install system dependencies
610
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
711

0 commit comments

Comments
 (0)