Skip to content

Retain type of Streams/ProducerApp in CLI module (#261) #344

Retain type of Streams/ProducerApp in CLI module (#261)

Retain type of Streams/ProducerApp in CLI module (#261) #344

Workflow file for this run

name: Publish Helm Charts
on:
push:
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]
needs: get-gradle-version
with:
charts-path: "./charts"
subdirs: "['producer-app','producer-app-cleanup-job','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 }}
github-token: ${{ secrets.GH_TOKEN }}