Skip to content

Commit

Permalink
Merge pull request #3 from Telicent-io/multiArch
Browse files Browse the repository at this point in the history
Build images for multiple architectures,fix #2
  • Loading branch information
jnioche committed Jul 11, 2023
2 parents 9aa8417 + 1ab3cc4 commit 6d5afdd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 }}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6d5afdd

Please sign in to comment.