Skip to content

Commit

Permalink
Create v3
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Apr 4, 2024
1 parent 975e7f7 commit c0945ff
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/helm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,40 @@ on:
- "**"

jobs:
get-gradle-version:
name: Get Gradle Version
runs-on: ubuntu-22.04
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- name: Check out repository
uses: bakdata/ci-templates/actions/[email protected]

- name: Set up Gradle with version ${{ inputs.gradle-version }}
uses: bakdata/ci-templates/actions/[email protected]
with:
java-distribution: "microsoft"
java-version: "11"
gradle-version: "wrapper"
gradle-cache: "true"
gradle-cache-read-only: "false"

- name: Get version
id: get-version
run: |
version=$(./gradlew properties -q | grep "^version:" | awk '{print $2}' | tr -d '[:space:]' | xargs)
echo "version=$version" >> "$GITHUB_OUTPUT"
shell: bash

call-workflow-passing-data:
name: Publish Helm chart
uses: bakdata/ci-templates/.github/workflows/[email protected]
uses: bakdata/ci-templates/.github/workflows/helm-multi-release.yaml@feature/helm-snapshots
needs: get-gradle-version
with:
charts-path: "./charts"
subdirs: "['producer-app','producer-app-cleanup-job','rclone-copy','streams-app','streams-app-cleanup-job']"
gh-pages-branch: gh-pages
version: ${{ needs.get-gradle-version.outputs.version }}
secrets:
github-username: ${{ secrets.GH_USERNAME }}
github-email: ${{ secrets.GH_EMAIL }}
Expand Down

0 comments on commit c0945ff

Please sign in to comment.