Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ name: Docker Image builder
on:
workflow_dispatch:
inputs:
image-name:
default: dremio-daas-mcp-server
description: Image name
required: true
type: string
repository:
default: us-west1-docker.pkg.dev/dremio-1093/dremio
description: Repository to push the image to. Image name is fixed to 'dremio-mcp-server' and tag is calculated at runtime
description: Repository to push the image to. Image name can be set by an input and tag is calculated at runtime
required: true
type: string

Expand Down Expand Up @@ -33,14 +38,14 @@ jobs:
with:
context: .
push: false
tags: dremio-mcp-server:${{ github.sha }}
tags: ${{ inputs.image-name }}:${{ github.sha }}
- name: Validate docker
run: |
docker run \
-e DREMIOAI_TOOLS__SERVER_MODE=FOR_DATA_PATTERNS \
-e DREMIOAI_DREMIO__URI=https://fake \
-e DREMIOAI_DREMIO__OAUTH_SUPPORTED=false \
dremio-mcp-server:${{ github.sha }} \
${{ inputs.image-name }}:${{ github.sha }} \
dremio-mcp-server tools list
- name: Start container
run: |
Expand All @@ -53,7 +58,7 @@ jobs:
--name mcp \
--rm \
--network host \
dremio-mcp-server:${{ github.sha }} \
${{ inputs.image-name }}:${{ github.sha }} \
dremio-mcp-server run --enable-streaming-http --port 6789 --no-log-to-file \
--enable-json-logging

Expand Down Expand Up @@ -84,6 +89,6 @@ jobs:
context: .
push: true
tags: |
${{ inputs.repository }}/dremio-mcp-server:${{ steps.tag.outputs.tag }}
${{ inputs.repository }}/${{ inputs.image-name }}:${{ steps.tag.outputs.tag }}