mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🔧 Add CI for MCP server (#8293)
This commit is contained in:
parent
a4f2641cc9
commit
d953222eb4
17
.github/workflows/build-docker.yml
vendored
17
.github/workflows/build-docker.yml
vendored
@ -59,6 +59,7 @@ jobs:
|
|||||||
mv penpot/frontend bundle-frontend
|
mv penpot/frontend bundle-frontend
|
||||||
mv penpot/exporter bundle-exporter
|
mv penpot/exporter bundle-exporter
|
||||||
mv penpot/storybook bundle-storybook
|
mv penpot/storybook bundle-storybook
|
||||||
|
mv penpot/mcp bundle-mcp
|
||||||
popd
|
popd
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
@ -89,6 +90,7 @@ jobs:
|
|||||||
backend
|
backend
|
||||||
exporter
|
exporter
|
||||||
storybook
|
storybook
|
||||||
|
mcp
|
||||||
labels: |
|
labels: |
|
||||||
bundle_version=${{ steps.bundles.outputs.bundle_version }}
|
bundle_version=${{ steps.bundles.outputs.bundle_version }}
|
||||||
|
|
||||||
@ -152,6 +154,21 @@ jobs:
|
|||||||
cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:buildcache
|
cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:buildcache
|
||||||
cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:buildcache,mode=max
|
cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:buildcache,mode=max
|
||||||
|
|
||||||
|
- name: Build and push MCP Docker image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
env:
|
||||||
|
DOCKER_IMAGE: 'mcp'
|
||||||
|
BUNDLE_PATH: './bundle-mcp'
|
||||||
|
with:
|
||||||
|
context: ./docker/images/
|
||||||
|
file: ./docker/images/Dockerfile.mcp
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: ${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:${{ steps.vars.outputs.gh_ref }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
cache-from: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:buildcache
|
||||||
|
cache-to: type=registry,ref=${{ secrets.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE }}:buildcache,mode=max
|
||||||
|
|
||||||
- name: Notify Mattermost
|
- name: Notify Mattermost
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: mattermost/action-mattermost-notify@master
|
uses: mattermost/action-mattermost-notify@master
|
||||||
|
|||||||
@ -362,11 +362,12 @@ function usage {
|
|||||||
echo "- isolated-shell Starts a bash shell in a new devenv container."
|
echo "- isolated-shell Starts a bash shell in a new devenv container."
|
||||||
echo "- log-devenv Show logs of the running devenv docker compose service."
|
echo "- log-devenv Show logs of the running devenv docker compose service."
|
||||||
echo ""
|
echo ""
|
||||||
echo "- build-bundle Build all bundles (frontend, backend and exporter)."
|
echo "- build-bundle Build all bundles (frontend, backend, exporter, storybook and mcp)."
|
||||||
echo "- build-frontend-bundle Build frontend bundle"
|
echo "- build-frontend-bundle Build frontend bundle"
|
||||||
echo "- build-backend-bundle Build backend bundle."
|
echo "- build-backend-bundle Build backend bundle."
|
||||||
echo "- build-exporter-bundle Build exporter bundle."
|
echo "- build-exporter-bundle Build exporter bundle."
|
||||||
echo "- build-storybook-bundle Build storybook bundle."
|
echo "- build-storybook-bundle Build storybook bundle."
|
||||||
|
echo "- build-mcp-bundle Build mcp bundle."
|
||||||
echo "- build-docs-bundle Build docs bundle."
|
echo "- build-docs-bundle Build docs bundle."
|
||||||
echo ""
|
echo ""
|
||||||
echo "- build-docker-images Build all docker images (frontend, backend and exporter)."
|
echo "- build-docker-images Build all docker images (frontend, backend and exporter)."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user