Skip to content

Init embedders, add dry-run, update FastMCP icons #5

Init embedders, add dry-run, update FastMCP icons

Init embedders, add dry-run, update FastMCP icons #5

Workflow file for this run

name: Build and Push Docker Image
on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
tag:
description: "Image tag (e.g. 2026-02)"
required: true
type: string
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Resolve tag
id: resolve_tag
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "tag=${{ inputs.tag }}" >> $GITHUB_OUTPUT
else
echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT
fi
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: jara1991/mathmoddb-mcp
tags: |
type=raw,value=${{ steps.resolve_tag.outputs.tag }}
type=raw,value=latest
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
secrets: |
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}