Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBP-1011-add-workflows-for-chart #1

Merged
merged 9 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/helm-chart-release-on-push-status.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release Status Chart on branch
on:
push:
branches-ignore:
- 'main'
paths:
- 'status/**'

concurrency:
group: chart-release

jobs:
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
36 changes: 36 additions & 0 deletions .github/workflows/helm-chart-release-on-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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
release_helm:
needs: get_tag
aimee-889 marked this conversation as resolved.
Show resolved Hide resolved
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
Loading