Skip to content

Commit

Permalink
Merge pull request eclipse-tractusx#504 from catenax-ng/feature/TRI-1…
Browse files Browse the repository at this point in the history
…135-extend-helm-chart-releaser

feat(impl):[TRI-1135] extend helm chart releaser to include last Chan…
  • Loading branch information
ds-ext-kmassalski authored Aug 30, 2023
2 parents 2a2f9aa + 3ef2ff6 commit 7f5ae53
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions .github/configs/cr-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
release-notes-file: CHANGELOG-temp.md
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# The queries security-extended and security-and-quality are built into CodeQL.
config-file: ./.github/codeql/codeql-config.yml
config-file: ./.github/configs/codeql-config.yml
queries: +security-and-quality,security-extended

- name: Cache maven packages
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/helm-chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,31 @@ jobs:
version: v3.8.1

- name: Update helm dependencies for irs
working-directory: charts/irs-helm/
run: |
cd charts/irs-helm
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add minio https://charts.min.io/
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
helm dependency update
- name: Create temporary CHANGELOG file for helm release
working-directory: charts/irs-helm/
run: |
touch CHANGELOG-temp.md
currentVersionNumber=$(echo ${{ needs.get-helm-charts-versions-irs.outputs.current_version }} | sed -e "s/^irs-helm-//" )
echo currentVersionNumber=$currentVersionNumber
sed -n -e '/## \['"${currentVersionNumber}"'\]/,/## \[/ p' CHANGELOG.md | head -n -1 | tail -n +2 >> CHANGELOG-temp.md
echo **Full Changelog**: ${{ github.server_url }}/${{ github.repository }}/compare/${{ needs.get-helm-charts-versions-irs.outputs.latest_version }}...${{ needs.get-helm-charts-versions-irs.outputs.current_version }} >> CHANGELOG-temp.md
echo "cat CHANGELOG-temp.md"
cat CHANGELOG-temp.md
- name: Run chart-releaser
uses: helm/[email protected]
with:
config: ./.github/configs/cr-config.yml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 7f5ae53

Please sign in to comment.