diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index cee580d..f1384e8 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -1,12 +1,3 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# GitHub recommends pinning actions to a commit SHA. -# To get a newer version, you will need to update the SHA. -# You can also reference a tag or branch, but the action may change without warning. - name: Publish Docker image on: @@ -44,11 +35,22 @@ jobs: with: images: telicent/opensearch - - name: Build and push Docker image + - name: Set up QEMU + uses: docker/setup-qemu-action@master + with: + platforms: all + + - name: Setup Docker buildx + id: buildx + uses: docker/setup-buildx-action@master + + - name: Build, tag, and push image to DockerHub uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: + builder: ${{ steps.buildx.outputs.name }} + platforms: linux/amd64,linux/arm64 + push: true context: . file: ./Dockerfile - push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/README.md b/README.md index badbf62..f0210e8 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,12 @@ docker build --tag=opensearch-telicent-plugin . This way the plugin will be preinstalled. +Alternatively, you can simply run the following command to pull the latest image from DockerHub + +''' +docker pull telicent/opensearch +''' + ## Getting Started First, you need to declare the analyzers when creating your index (assuming OpenSearch is running locally on the default port and that the default security settings are applied):