diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 2d03826b65..c1901c9114 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -59,6 +59,7 @@ jobs: mv penpot/frontend bundle-frontend mv penpot/exporter bundle-exporter mv penpot/storybook bundle-storybook + mv penpot/mcp bundle-mcp popd - name: Set up Docker Buildx @@ -89,6 +90,7 @@ jobs: backend exporter storybook + mcp labels: | 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-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 if: failure() uses: mattermost/action-mattermost-notify@master diff --git a/manage.sh b/manage.sh index 6c55d4e545..eb87d41b14 100755 --- a/manage.sh +++ b/manage.sh @@ -362,11 +362,12 @@ function usage { 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 "" - 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-backend-bundle Build backend bundle." echo "- build-exporter-bundle Build exporter bundle." echo "- build-storybook-bundle Build storybook bundle." + echo "- build-mcp-bundle Build mcp bundle." echo "- build-docs-bundle Build docs bundle." echo "" echo "- build-docker-images Build all docker images (frontend, backend and exporter)." @@ -446,7 +447,7 @@ case $1 in build-exporter-bundle) build-exporter-bundle; ;; - + build-storybook-bundle) build-storybook-bundle; ;;