Skip to content

Commit

Permalink
Set up Helm repository and automatic releases (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper7 committed Nov 28, 2022
1 parent 61ab515 commit a415f37
Show file tree
Hide file tree
Showing 24 changed files with 77 additions and 2 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Helm

on:
push:
branches:
- main

permissions:
contents: read

jobs:
changes:
name: Check for updated charts
permissions:
contents: read
pull-requests: read
runs-on: ubuntu-latest
if: |
(github.repository == 'iterative/helm-charts')
outputs:
charts: ${{ steps.filter.outputs.charts }}

steps:
- name: Checkout
uses: actions/checkout@v3

- uses: dorny/paths-filter@v2.11.1
id: filter
with:
token: ${{ secrets.GITHUB_TOKEN }}
filters: |
charts:
- 'charts/studio/Chart.yaml'
- 'charts/studio/values.yaml'
release:
name: Release chart
runs-on: ubuntu-latest

permissions:
contents: write

needs:
- changes
if: |
(github.repository == 'iterative/helm-charts') &&
(needs.changes.outputs.charts == 'true')
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0

- name: Add repositories for dependencies
run: |
for dir in $(ls -d charts/*/); do
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
done
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.4.1
env:
CR_SKIP_EXISTING: "false"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
File renamed without changes.
4 changes: 2 additions & 2 deletions studio/Chart.lock β†’ charts/studio/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 11.9.1
digest: sha256:993e49ca732a78b7374b17e8e5da57a05ccc181323ca6328d2f4a4c09a738f82
generated: "2022-09-29T12:13:58.346288+05:30"
digest: sha256:1b3c189c2679d25a9a1f3586d8114e7562f1466f25b096371a51750f917c0c9e
generated: "2022-11-24T14:40:37.666315452+01:00"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a415f37

Please sign in to comment.