Skip to content

Commit

Permalink
ci: publish standalone image with tag (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
s12f authored Nov 20, 2023
1 parent a4245e0 commit c269610
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish standalone image with tag

on:
push:
tags:
- "v*"

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_${GITHUB_REF#refs/*/}
./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_${GITHUB_REF#refs/*/}

0 comments on commit c269610

Please sign in to comment.