-
Notifications
You must be signed in to change notification settings - Fork 27
62 lines (56 loc) · 2.01 KB
/
docker-mcp.yml
File metadata and controls
62 lines (56 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Docker MCP Server
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'MCP server version to build (e.g. 0.3.8)'
required: true
jobs:
docker:
name: Build and push MCP server image
if: >-
github.event_name == 'workflow_dispatch' ||
startsWith(github.event.release.tag_name, '@transloadit/mcp-server@')
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Extract version
id: version
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
VERSION="${{ github.event.inputs.version }}"
else
TAG="${{ github.event.release.tag_name }}"
VERSION="${TAG#@transloadit/mcp-server@}"
fi
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: packages/mcp-server
file: packages/mcp-server/Dockerfile
build-args: |
MCP_VERSION=${{ steps.version.outputs.version }}
push: true
tags: |
ghcr.io/transloadit/mcp-server:${{ steps.version.outputs.version }}
ghcr.io/transloadit/mcp-server:latest
labels: |
org.opencontainers.image.title=Transloadit MCP Server
org.opencontainers.image.description=Process video, audio, images, and documents with 86+ cloud media processing robots
org.opencontainers.image.source=https://github.com/transloadit/node-sdk
org.opencontainers.image.version=${{ steps.version.outputs.version }}
org.opencontainers.image.licenses=MIT
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max