-
Notifications
You must be signed in to change notification settings - Fork 20
49 lines (42 loc) · 1.44 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release Charts
on:
repository_dispatch:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
# https://github.com/helm/helm/issues/8036
# https://github.com/helm/chart-releaser-action/issues/74
- name: Checkout repositories for dependencies
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
- name: Run CI script if present
run: |
for chart in charts/*; do
[ -e "$chart" ] || continue
if [ -f "$chart/ci.sh" ]; then
cd "$chart"
echo "Running custom CI script for $chart"
./ci.sh "${{ github.event.client_payload.ref }}" "${{ github.event.client_payload.notes }}" "${{ github.event.client_payload.contains_security_updates }}"
cd - > /dev/null
fi
done
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: '${{ secrets.CR_TOKEN }}'
CR_SKIP_EXISTING: true
with:
charts_repo_url: https://charts.enix.io/