Skip to content

Commit 4220be7

Browse files
committed
Simplify docker-publish.yml workflow and update badges
- Comment out unused Docker labels and cache settings - Disable SBOM and provenance generation in Docker builds - Adjust `build-and-push` matrix order for clarity - Update README badges: - Replace old test badge reference with code comments - Add Docker workflow badge alongside tests badge - Adjust caching (force pushed) - Add cleanup workflow stage (force pushed) - Properly set convenience tags latest and dev (on main). Signed-off-by: Phillip Sitbon <phillip.sitbon@gmail.com>
1 parent 74bb2d3 commit 4220be7

File tree

2 files changed

+36
-10
lines changed

2 files changed

+36
-10
lines changed

.github/workflows/docker-publish.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build, Test, and Publish Docker Images
1+
name: Docker
22

33
on:
44
push:
@@ -48,7 +48,7 @@ jobs:
4848
type=ref,event=pr,suffix=-dev-py${{ matrix.python-version }}
4949
type=semver,pattern={{version}},suffix=-dev-py${{ matrix.python-version }}
5050
type=semver,pattern={{major}}.{{minor}},suffix=-dev-py${{ matrix.python-version }}
51-
type=raw,value=latest,enable={{is_default_branch}},suffix=-dev-py${{ matrix.python-version }}
51+
type=raw,value=${{ github.ref == 'refs/heads/main' && 'dev' || format('{0}-dev', github.ref_name) }},enable=${{ matrix.python-version == '3.13' }}
5252
5353
- name: Build dev image
5454
uses: docker/build-push-action@v6
@@ -58,12 +58,14 @@ jobs:
5858
target: dev
5959
push: false
6060
tags: ${{ steps.meta.outputs.tags }}
61-
labels: ${{ steps.meta.outputs.labels }}
61+
# labels: ${{ steps.meta.outputs.labels }}
6262
build-args: |
6363
PYTHON_VERSION=${{ matrix.python-version }}
6464
cache-from: type=gha
6565
cache-to: type=gha,mode=max
6666
load: true
67+
provenance: false
68+
sbom: false
6769

6870
- name: Run tests in container
6971
run: |
@@ -81,10 +83,13 @@ jobs:
8183
target: dev
8284
push: true
8385
tags: ${{ steps.meta.outputs.tags }}
84-
labels: ${{ steps.meta.outputs.labels }}
86+
# labels: ${{ steps.meta.outputs.labels }}
8587
build-args: |
8688
PYTHON_VERSION=${{ matrix.python-version }}
8789
cache-from: type=gha
90+
cache-to: type=gha,mode=max
91+
provenance: false
92+
sbom: false
8893

8994
build-and-push:
9095
needs: test-dev-container
@@ -96,10 +101,10 @@ jobs:
96101
strategy:
97102
matrix:
98103
include:
99-
- target: pro
100-
suffix: ""
101104
- target: pre
102105
suffix: "-pre"
106+
- target: pro
107+
suffix: ""
103108

104109
steps:
105110
- name: Checkout
@@ -125,7 +130,7 @@ jobs:
125130
type=ref,event=pr,suffix=${{ matrix.suffix }}
126131
type=semver,pattern={{version}},suffix=${{ matrix.suffix }}
127132
type=semver,pattern={{major}}.{{minor}},suffix=${{ matrix.suffix }}
128-
type=raw,value=latest,enable={{is_default_branch}},suffix=${{ matrix.suffix }}
133+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' && matrix.target == 'pro' }}
129134
130135
- name: Build and push Docker image
131136
uses: docker/build-push-action@v6
@@ -135,6 +140,24 @@ jobs:
135140
target: ${{ matrix.target }}
136141
push: ${{ github.event_name != 'pull_request' }}
137142
tags: ${{ steps.meta.outputs.tags }}
138-
labels: ${{ steps.meta.outputs.labels }}
143+
# labels: ${{ steps.meta.outputs.labels }}
139144
cache-from: type=gha
140-
cache-to: type=gha,mode=max
145+
cache-to: type=gha,mode=max
146+
provenance: false
147+
sbom: false
148+
149+
cleanup-untagged:
150+
needs: [test-dev-container, build-and-push]
151+
runs-on: ubuntu-latest
152+
if: github.event_name != 'pull_request'
153+
permissions:
154+
packages: write
155+
steps:
156+
- name: Delete untagged images
157+
uses: actions/delete-package-versions@v5
158+
with:
159+
package-name: 'magg'
160+
package-type: 'container'
161+
delete-only-untagged-versions: 'true'
162+
min-versions-to-keep: 0
163+
token: ${{ secrets.GITHUB_TOKEN }}

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# 🧲 **Magg** - *The MCP (Model Context Protocol) Aggregator*
22

3-
[![Tests](https://img.shields.io/github/actions/workflow/status/sitbon/magg/test.yml?style=flat-square&label=tests)](https://github.com/sitbon/magg/actions/workflows/test.yml)
3+
[//]: # ([![Tests]&#40;https://img.shields.io/github/actions/workflow/status/sitbon/magg/test.yml?style=flat-square&label=tests&#41;]&#40;https://github.com/sitbon/magg/actions/workflows/test.yml&#41;)
44
[![Python Version](https://img.shields.io/pypi/pyversions/magg?style=flat-square&logo=python&logoColor=white)](https://pypi.org/project/magg/)
55
[![PyPI Version](https://img.shields.io/pypi/v/magg?style=flat-square&logo=pypi&logoColor=white)](https://pypi.org/project/magg/)
66
[![GitHub Release](https://img.shields.io/github/v/release/sitbon/magg?style=flat-square&logo=github)](https://github.com/sitbon/magg/releases)
77
[![DeepWiki](https://img.shields.io/badge/DeepWiki-sitbon%2Fmagg-blue.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAyCAYAAAAnWDnqAAAAAXNSR0IArs4c6QAAA05JREFUaEPtmUtyEzEQhtWTQyQLHNak2AB7ZnyXZMEjXMGeK/AIi+QuHrMnbChYY7MIh8g01fJoopFb0uhhEqqcbWTp06/uv1saEDv4O3n3dV60RfP947Mm9/SQc0ICFQgzfc4CYZoTPAswgSJCCUJUnAAoRHOAUOcATwbmVLWdGoH//PB8mnKqScAhsD0kYP3j/Yt5LPQe2KvcXmGvRHcDnpxfL2zOYJ1mFwrryWTz0advv1Ut4CJgf5uhDuDj5eUcAUoahrdY/56ebRWeraTjMt/00Sh3UDtjgHtQNHwcRGOC98BJEAEymycmYcWwOprTgcB6VZ5JK5TAJ+fXGLBm3FDAmn6oPPjR4rKCAoJCal2eAiQp2x0vxTPB3ALO2CRkwmDy5WohzBDwSEFKRwPbknEggCPB/imwrycgxX2NzoMCHhPkDwqYMr9tRcP5qNrMZHkVnOjRMWwLCcr8ohBVb1OMjxLwGCvjTikrsBOiA6fNyCrm8V1rP93iVPpwaE+gO0SsWmPiXB+jikdf6SizrT5qKasx5j8ABbHpFTx+vFXp9EnYQmLx02h1QTTrl6eDqxLnGjporxl3NL3agEvXdT0WmEost648sQOYAeJS9Q7bfUVoMGnjo4AZdUMQku50McDcMWcBPvr0SzbTAFDfvJqwLzgxwATnCgnp4wDl6Aa+Ax283gghmj+vj7feE2KBBRMW3FzOpLOADl0Isb5587h/U4gGvkt5v60Z1VLG8BhYjbzRwyQZemwAd6cCR5/XFWLYZRIMpX39AR0tjaGGiGzLVyhse5C9RKC6ai42ppWPKiBagOvaYk8lO7DajerabOZP46Lby5wKjw1HCRx7p9sVMOWGzb/vA1hwiWc6jm3MvQDTogQkiqIhJV0nBQBTU+3okKCFDy9WwferkHjtxib7t3xIUQtHxnIwtx4mpg26/HfwVNVDb4oI9RHmx5WGelRVlrtiw43zboCLaxv46AZeB3IlTkwouebTr1y2NjSpHz68WNFjHvupy3q8TFn3Hos2IAk4Ju5dCo8B3wP7VPr/FGaKiG+T+v+TQqIrOqMTL1VdWV1DdmcbO8KXBz6esmYWYKPwDL5b5FA1a0hwapHiom0r/cKaoqr+27/XcrS5UwSMbQAAAABJRU5ErkJggg==)](https://deepwiki.com/sitbon/magg)
88
[![Downloads](https://img.shields.io/pypi/dm/magg?style=flat-square)](https://pypistats.org/packages/magg)
99
<!-- DeepWiki badge generated by https://deepwiki.ryoppippi.com/ -->
1010

11+
[![Tests](https://github.com/sitbon/magg/actions/workflows/test.yml/badge.svg)](https://github.com/sitbon/magg/actions/workflows/test.yml)
12+
[![Docker](https://github.com/sitbon/magg/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/sitbon/magg/actions/workflows/docker-publish.yml)
13+
1114
An MCP server that manages and aggregates other MCP servers, enabling LLMs to dynamically extend their own capabilities.
1215

1316
## What is Magg?

0 commit comments

Comments
 (0)