-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DBP-1011-add-workflows-for-chart (#1)
Add workflows for chart publishing: On push to branch On PR (kics check) On tag Add README and license.
- Loading branch information
1 parent
c204b39
commit f65d244
Showing
8 changed files
with
746 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Kics check on PR | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
scan_pr: | ||
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/check-helm-kics.yaml@7 | ||
permissions: | ||
contents: read | ||
with: | ||
chart_path: "." |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Release Status Chart on branch | ||
on: | ||
push: | ||
branches-ignore: | ||
- 'main' | ||
paths: | ||
- 'status/**' | ||
|
||
concurrency: | ||
group: chart-release | ||
|
||
jobs: | ||
scan: | ||
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/check-helm-kics.yaml@7 | ||
permissions: | ||
contents: read | ||
with: | ||
chart_path: "." | ||
release_helm: | ||
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/chart-release.yaml@7 | ||
secrets: inherit | ||
with: | ||
chart_path: "." | ||
chart_name: status | ||
helm_chart_version_generation: ticket_from_branch_timestamp | ||
image_tag_generation: chart_yaml |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Release Charts on Tag | ||
on: | ||
push: | ||
tags: | ||
- '.+-[0-9]+.[0-9]+.[0-9]+' | ||
|
||
concurrency: | ||
group: chart-release | ||
|
||
jobs: | ||
get_tag: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
chart: ${{ steps.nameTag.outputs.chart }} | ||
version: ${{ steps.nameTag.outputs.version }} | ||
steps: | ||
- name: Filter Tag name | ||
uses: olegtarasov/[email protected] | ||
id: nameTag | ||
with: | ||
tagRegex: "(?<chart>.+?)-(?<version>[0-9]+.[0-9]+.[0-9]+)" | ||
|
||
scan: | ||
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/check-helm-kics.yaml@7 | ||
permissions: | ||
contents: read | ||
with: | ||
chart_path: "." | ||
release_helm: | ||
needs: get_tag | ||
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/chart-release.yaml@7 | ||
secrets: inherit | ||
with: | ||
chart_path: "." | ||
chart_name: ${{ needs.get_tag.outputs.chart }} | ||
helm_chart_version_generation: specified | ||
helm_chart_version: ${{ needs.get_tag.outputs.version }} | ||
image_tag_generation: chart_yaml |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# helm-charts | ||
|
||
This is the place for reusable helm charts. | ||
They are published in the [helm-charts-registry](https://github.com/dBildungsplattform/helm-charts-registry) repository when pushing on a branch (Version 0.0.0-\<ticket>-\<timestamp>) or when adding a tag in the format \<chart name>-X.X.X. |
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
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
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