Skip to content

Commit

Permalink
try to build helm charts with releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rndmh3ro committed Aug 28, 2023
1 parent f92c76c commit 6b9a7c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/telekom-mms/docker-trivy-dojo-operator:latest
tags: ghcr.io/telekom-mms/docker-trivy-dojo-operator:latest,ghcr.io/telekom-mms/docker-trivy-dojo-operator:${{ github.event.release.tag_name }}
if: github.ref == 'refs/heads/main'
helm:
runs-on: ubuntu-latest
Expand All @@ -57,10 +57,9 @@ jobs:
- name: Update Chart.yaml
run: |
helm release charts/
helm release -t ${{ github.event.release.tag_name }} --path operator.trivyDojoReportOperator.image.tag charts/
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

2 changes: 1 addition & 1 deletion charts/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/*
Expand the name of the chart.
Expand the name of the chart
*/}}
{{- define "charts.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
Expand Down

0 comments on commit 6b9a7c1

Please sign in to comment.