Skip to content

Commit 430b856

Browse files
committed
Move self-hosted MCP Docker Hub publish to backend
1 parent a1aa95d commit 430b856

2 files changed

Lines changed: 0 additions & 60 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
env:
1010
DOCKER_REGISTRY: ghcr.io
1111
IMAGE_NAME: ghcr.io/codealive-ai/codealive-mcp
12-
DOCKERHUB_IMAGE: ivanbirukcodealive/codealive_ai
1312

1413
permissions:
1514
contents: read
@@ -93,15 +92,6 @@ jobs:
9392
username: ${{ github.actor }}
9493
password: ${{ secrets.GITHUB_TOKEN }}
9594

96-
- name: Login to Docker Hub
97-
id: dockerhub_login
98-
if: github.event_name == 'push'
99-
continue-on-error: true
100-
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
101-
with:
102-
username: ${{ secrets.DOCKERHUB_USERNAME }}
103-
password: ${{ secrets.DOCKERHUB_TOKEN }}
104-
10595
# PR: build only (no push) to validate Dockerfile — single platform for speed
10696
- name: Build Docker image (PR validation)
10797
if: github.event_name == 'pull_request'
@@ -129,21 +119,3 @@ jobs:
129119
org.opencontainers.image.revision=${{ github.sha }}
130120
cache-from: type=gha
131121
cache-to: type=gha
132-
133-
# Docker Hub is a secondary self-hosted distribution channel. Missing
134-
# credentials must not block GHCR, because production pulls from GHCR.
135-
- name: Build and push Docker image (Docker Hub)
136-
if: github.event_name == 'push' && steps.dockerhub_login.outcome == 'success'
137-
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
138-
with:
139-
push: true
140-
platforms: linux/amd64,linux/arm64
141-
file: ./Dockerfile
142-
tags: |
143-
${{ env.DOCKERHUB_IMAGE }}:mcp-dev
144-
${{ env.DOCKERHUB_IMAGE }}:mcp-sha-${{ github.sha }}
145-
labels: |
146-
io.modelcontextprotocol.server.name=io.github.CodeAlive-AI/codealive-mcp
147-
org.opencontainers.image.revision=${{ github.sha }}
148-
cache-from: type=gha
149-
cache-to: type=gha

.github/workflows/release.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ on:
2020
env:
2121
DOCKER_REGISTRY: ghcr.io
2222
IMAGE_NAME: ghcr.io/codealive-ai/codealive-mcp
23-
# Self-hosted customers get MCP from Docker Hub alongside backend images.
24-
DOCKERHUB_IMAGE: ivanbirukcodealive/codealive_ai
2523

2624
permissions:
2725
id-token: write # MCP Registry OIDC authentication
@@ -148,19 +146,6 @@ jobs:
148146
username: ${{ github.actor }}
149147
password: ${{ secrets.GITHUB_TOKEN }}
150148

151-
# Docker Hub publish is a secondary distribution channel for self-hosted
152-
# customers. Treat it as best-effort: missing credentials must NOT block
153-
# the primary release path (GHCR push, MCP Registry publish, git tag,
154-
# GitHub Release). Configure DOCKERHUB_USERNAME / DOCKERHUB_TOKEN in the
155-
# `release` environment to re-enable.
156-
- name: Login to Docker Hub (self-hosted distribution)
157-
id: dockerhub_login
158-
continue-on-error: true
159-
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
160-
with:
161-
username: ${{ secrets.DOCKERHUB_USERNAME }}
162-
password: ${{ secrets.DOCKERHUB_TOKEN }}
163-
164149
- name: Build and push Docker image (GHCR)
165150
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
166151
with:
@@ -179,23 +164,6 @@ jobs:
179164
cache-from: type=gha
180165
cache-to: type=gha
181166

182-
- name: Build and push Docker image (Docker Hub)
183-
if: steps.dockerhub_login.outcome == 'success'
184-
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
185-
with:
186-
push: true
187-
platforms: linux/amd64,linux/arm64
188-
file: ./Dockerfile
189-
build-args: VERSION=${{ steps.version.outputs.version }}
190-
tags: |
191-
${{ env.DOCKERHUB_IMAGE }}:mcp
192-
${{ env.DOCKERHUB_IMAGE }}:mcp-v${{ steps.version.outputs.version }}
193-
${{ env.DOCKERHUB_IMAGE }}:mcp-sha-${{ github.sha }}
194-
labels: |
195-
io.modelcontextprotocol.server.name=io.github.CodeAlive-AI/codealive-mcp
196-
org.opencontainers.image.revision=${{ github.sha }}
197-
cache-from: type=gha
198-
199167
# Git tag created AFTER Docker push succeeds — if Docker fails, no stale tag
200168
- name: Create and push git tag
201169
run: |

0 commit comments

Comments
 (0)