Skip to content

Commit

Permalink
Add Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickEvers committed Oct 17, 2024
1 parent c204b39 commit eabd989
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 4 deletions.
21 changes: 21 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,21 @@
name: Release Status Chart on branch
on:
push:
branches-ignore:
- 'main'
paths:
- 'status/**'

concurrency:
group: status-chart
cancel-in-progress: true

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
37 changes: 37 additions & 0 deletions .github/workflows/helm-chart-release-on-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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: scan
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/chart-release.yaml@7
secrets: inherit
needs: get_tag
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
5 changes: 1 addition & 4 deletions status/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ description: A Helm chart for Kubernetes
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.2
version: # Managed by Tagging

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down

0 comments on commit eabd989

Please sign in to comment.