Skip to content

Commit

Permalink
Migrate azure pipeline to GH-action (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Yannick Röder <[email protected]>
  • Loading branch information
MichaelKora and yannick-roeder authored Feb 8, 2024
1 parent 1941d78 commit 6ea55c7
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 28 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build and Publish

on:
push:
tags: ["**"]
branches: ["**"]

jobs:
build-and-publish:
name: Java Gradle
uses: bakdata/ci-templates/.github/workflows/[email protected]
secrets:
sonar-token: ${{ secrets.SONARCLOUD_TOKEN }}
sonar-organization: ${{ secrets.SONARCLOUD_ORGANIZATION }}
signing-secret-key-ring: ${{ secrets.SONATYPE_SIGNING_SECRET_KEY_RING }}
signing-key-id: ${{ secrets.SONATYPE_SIGNING_KEY_ID }}
signing-password: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
ossrh-username: ${{ secrets.SONATYPE_OSSRH_USERNAME }}
ossrh-password: ${{ secrets.SONATYPE_OSSRH_PASSWORD }}
github-username: ${{ secrets.GH_USERNAME }}
github-token: ${{ secrets.GH_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
uses: bakdata/ci-templates/.github/workflows/[email protected]
with:
release-type: "${{ inputs.release-type }}"
secrets:
github-email: "${{ secrets.GH_EMAIL }}"
github-username: "${{ secrets.GH_USERNAME }}"
github-token: "${{ secrets.GH_TOKEN }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.*
!.gitignore
!.github
!.travis.yml
build/
out/
Expand Down
27 changes: 0 additions & 27 deletions azure-pipelines.yml

This file was deleted.

3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ subprojects {
"testAnnotationProcessor"("org.projectlombok:lombok:1.18.6")
}
}

val sonarqube by tasks
sonarqube.enabled = false //FIXME requires Java 17
2 changes: 1 addition & 1 deletion kafka-streams-reflect-avro-serde/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
description = "Provides an Avro Serde that can (de)serialize (almost) arbitrary Java objects in Kafka Streams."

repositories {
maven(url = "http://packages.confluent.io/maven/")
maven(url = "https://packages.confluent.io/maven/")
}

dependencies {
Expand Down

0 comments on commit 6ea55c7

Please sign in to comment.