-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0965d6
commit a5ca4ce
Showing
1 changed file
with
28 additions
and
3 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 |
---|---|---|
|
@@ -2,17 +2,42 @@ name: Publish Helm Charts | |
|
||
on: | ||
push: | ||
tags: | ||
- "**" | ||
|
||
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 }} | ||
|