diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml
index e4d995e..cee580d 100644
--- a/.github/workflows/dockerhub.yml
+++ b/.github/workflows/dockerhub.yml
@@ -10,8 +10,9 @@
name: Publish Docker image
on:
- release:
- types: [published]
+ push:
+ tags:
+ - "*"
jobs:
push_to_registry:
@@ -21,6 +22,16 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3
+ - name: Set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ cache: maven
+
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
+
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
diff --git a/Dockerfile b/Dockerfile
index 284279a..c3c9100 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,3 @@
-FROM opensearchproject/opensearch:latest
-COPY target/releases/SynonymsPlugin-2.6.0.0.zip /tmp
-RUN /usr/share/opensearch/bin/opensearch-plugin install --batch file:///tmp/SynonymsPlugin-2.6.0.0.zip
+FROM opensearchproject/opensearch:2.8.0
+COPY target/releases/SynonymsPlugin-2.8.0.0.zip /tmp
+RUN /usr/share/opensearch/bin/opensearch-plugin install --batch file:///tmp/SynonymsPlugin-2.8.0.0.zip
diff --git a/pom.xml b/pom.xml
index 155d341..b68584a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
io.telicent.opensearch
SynonymsPlugin
- 2.6.0.0
+ 2.8.0.0
A plugin for OpenSearch providing an index-backed synonym
handler
@@ -13,7 +13,7 @@
1.17.6
4.2
2.14.2
- 2.6.0
+ 2.8.0
UTF-8
diff --git a/src/test/java/io/telicent/opensearch/IndexedSynonymParserTest.java b/src/test/java/io/telicent/opensearch/IndexedSynonymParserTest.java
index 6fd932d..c409788 100644
--- a/src/test/java/io/telicent/opensearch/IndexedSynonymParserTest.java
+++ b/src/test/java/io/telicent/opensearch/IndexedSynonymParserTest.java
@@ -54,7 +54,7 @@ private void setup(boolean security) throws Exception {
// https://github.com/opensearch-project/opensearch-testcontainers
String version = System.getProperty("opensearch-version");
- if (version == null) version = "2.6.0";
+ if (version == null) version = "2.8.0";
LOG.info("Starting docker instance of OpenSearch {}...", version);
container = new OpensearchContainer("opensearchproject/opensearch:" + version);