-
Notifications
You must be signed in to change notification settings - Fork 27
49 lines (43 loc) · 1.61 KB
/
docker-mcp.yml
File metadata and controls
49 lines (43 loc) · 1.61 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
name: Docker MCP Server
on:
release:
types: [published]
jobs:
docker:
name: Build and push MCP server image
if: 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 from release tag
id: version
run: |
TAG="${{ github.event.release.tag_name }}"
VERSION="${TAG#@transloadit/mcp-server@}"
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
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,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max