Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
raminqaf committed Dec 16, 2024
1 parent ee6637d commit db1062a
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
env:
java-version: 21
gradle-version: 8.4
gradle-cache: true
gradle-cache-read-only: false
gradle-refresh-dependencies: false
working-directory: "./word-count/code"

jobs:
Expand Down Expand Up @@ -52,7 +55,7 @@ jobs:
gradle-version: ${{ env.gradle-version }}
gradle-cache: true
gradle-cache-read-only: true
gradle-refresh-dependencies: false
gradle-refresh-dependencies: ${{ env.gradle-refresh-dependencies }}
working-directory: ${{ env.working-directory }}

- name: Build and push word count image
Expand All @@ -62,7 +65,25 @@ jobs:
class: com.bakdata.kpops.examples.WordCountApplication
java-version: ${{ env.java-version }}
gradle-version: ${{ env.gradle-version }}
gradle-cache: true
gradle-cache: ${{ env.gradle-cache }}
gradle-cache-read-only: true
gradle-refresh-dependencies: false
gradle-refresh-dependencies: ${{ env.gradle-refresh-dependencies }}
working-directory: ${{ env.working-directory }}

release:
name: Create Github release
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
needs: [build-and-test, build-jib]

steps:
- name: Release on Github
uses: bakdata/ci-templates/actions/[email protected]
with:
github-token: ${{ secrets.GH_TOKEN }}
java-version: ${{ env.java-version }}
gradle-version: ${{ env.gradle-version }}
gradle-cache: ${{ env.gradle-cache }}
gradle-cache-read-only: ${{ env.gradle-cache-read-only }}
gradle-refresh-dependencies: ${{ env.gradle-refresh-dependencies }}
working-directory: ${{ env.working-directory }}

0 comments on commit db1062a

Please sign in to comment.