Skip to content

ci: publish standalone image with tag (#89) #12

ci: publish standalone image with tag (#89)

ci: publish standalone image with tag (#89) #12

name: Publish hstreamdb/sink-elasticsearch:standalone
on:
push:
branches: [ "main" ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: "11"
distribution: "adopt"
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: publish local java-toolkit
working-directory: ./java-toolkit
run: ./gradlew publishToMavenLocal -PdisableSigning --info --refresh-dependencies
- name: build images
working-directory: ./sink-elasticsearch
run: |
export CONNECTOR_IMAGE_VERSION=standalone
./gradlew buildImages
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push images to dockerhub
run: docker push hstreamdb/sink-elasticsearch:standalone