2020env :
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
2624permissions :
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