Skip to content

Commit 295f43c

Browse files
make build docker image a triggable workflow
1 parent 850efac commit 295f43c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Docker Image builder
22

33
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
4+
workflow_dispatch:
5+
inputs:
6+
repository:
7+
default: us-west1-docker.pkg.dev/dremio-1093/dremio
8+
description: Repository to push the image to. Image name is fixed to 'dremio-mcp-server' and tag is calculated at runtime
9+
required: true
10+
type: string
811

912
jobs:
1013
build:
@@ -65,7 +68,6 @@ jobs:
6568
head_sha=$(git rev-parse --short HEAD)
6669
timestamp=$(date -u +"%Y%m%d%H%M%S")
6770
68-
# This tag follows the same convention as https://github.com/dremio/opensearch-k8s-operator/blob/main/.github/workflows/publish.yaml#L17
6971
tag="${timestamp}-${head_sha}"
7072
7173
echo "tag=$tag" | tee -a "$GITHUB_OUTPUT"
@@ -82,6 +84,6 @@ jobs:
8284
context: .
8385
push: true
8486
tags: |
85-
us-west1-docker.pkg.dev/dremio-1093/dremio/dremio-mcp-server:${{ steps.tag.outputs.tag }}
87+
${{ inputs.repository }}/dremio-mcp-server:${{ steps.tag.outputs.tag }}
8688
8789

0 commit comments

Comments
 (0)