-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/bakdata/kpops-examples into…
… test/argocd
- Loading branch information
Showing
21 changed files
with
323 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Build and Publish | ||
|
||
on: | ||
push: | ||
tags: ["**"] | ||
branches: ["**"] | ||
|
||
env: | ||
java-version: 21 | ||
gradle-version: 8.4 | ||
working-directory: "./word-count/code" | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build, Test and Assess code quality | ||
uses: bakdata/ci-templates/.github/workflows/[email protected] | ||
with: | ||
java-version: 21 | ||
gradle-version: 8.4 | ||
gradle-cache: true | ||
gradle-cache-read-only: false | ||
gradle-refresh-dependencies: false | ||
working-directory: "./word-count/code" | ||
secrets: | ||
signing-key-id: ${{ secrets.SONATYPE_SIGNING_KEY_ID }} | ||
signing-password: ${{ secrets.SONATYPE_SIGNING_PASSWORD }} | ||
signing-secret-key-ring: ${{ secrets.SONATYPE_SIGNING_SECRET_KEY_RING }} | ||
sonar-token: ${{ secrets.SONARCLOUD_TOKEN }} | ||
sonar-organization: ${{ secrets.SONARCLOUD_ORGANIZATION }} | ||
|
||
build-jib: | ||
name: Build images | ||
runs-on: ubuntu-22.04 | ||
defaults: | ||
run: | ||
working-directory: ${{ env.working-directory }} | ||
needs: build-and-test | ||
|
||
steps: | ||
- name: Login into docker | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push sentence producer image | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
full-image-name: bakdata/kpops-demo-sentence-producer | ||
class: com.bakdata.kpops.examples.SentenceProducer | ||
java-version: ${{ env.java-version }} | ||
gradle-version: ${{ env.gradle-version }} | ||
gradle-cache: true | ||
gradle-cache-read-only: true | ||
gradle-refresh-dependencies: false | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Build and push word count image | ||
uses: bakdata/ci-templates/actions/[email protected] | ||
with: | ||
full-image-name: bakdata/kpops-demo-word-count-app | ||
class: com.bakdata.kpops.examples.WordCountApplication | ||
java-version: ${{ env.java-version }} | ||
gradle-version: ${{ env.gradle-version }} | ||
gradle-cache: true | ||
gradle-cache-read-only: true | ||
gradle-refresh-dependencies: false | ||
working-directory: ${{ env.working-directory }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release-type: | ||
description: "The scope of the release (major, minor or patch)." | ||
type: choice | ||
required: true | ||
default: patch | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
jobs: | ||
java-gradle-release: | ||
name: Java Gradle Release | ||
uses: bakdata/ci-templates/.github/workflows/[email protected] | ||
with: | ||
java-version: 21 | ||
release-type: "${{ inputs.release-type }}" | ||
working-directory: "./word-count/code" | ||
secrets: | ||
github-email: "${{ secrets.GH_EMAIL }}" | ||
github-username: "${{ secrets.GH_USERNAME }}" | ||
github-token: ${{ secrets.GH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
kpops~=3.0 | ||
kpops~=8.1.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version=1.0.0-SNAPSHOT | ||
org.gradle.caching=true | ||
org.gradle.parallel=true | ||
junitVersion=5.9.2 | ||
kafkaVersion=3.3.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.