Skip to content

Commit 10c7f89

Browse files
committed
fix build-args
1 parent 3e37038 commit 10c7f89

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7+
inputs:
8+
opensearch-version:
9+
description: 'OpenSearch Version to use'
10+
required: true
11+
default: 2.2.1
12+
ltrversion:
13+
description: 'LTR Plugin Version'
14+
required: true
15+
default: 2.0.0
716

817

918
jobs:
@@ -26,7 +35,9 @@ jobs:
2635
with:
2736
file: docker/Dockerfile
2837
# TODO: fix this so it isn't hardcoded
29-
build-args: opensearch_version=2.2.1 ltrversion=2.0.0
38+
build-args: |
39+
opensearch_version=${{inputs.opensearch-version}}
40+
ltrversion=${{ltrversion}}
3041
push: true
3142
tags: gsingers/opensearch-learning-to-rank
3243
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)