forked from Enapter/charts
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (42 loc) · 1.22 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
50
51
52
name: Release
on:
release:
types:
- published
jobs:
release-helm-chart:
permissions:
contents: write
runs-on: elisa-normal
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- uses: actions/setup-python@v5
with:
python-version: '3.12'
check-latest: true
- uses: azure/setup-helm@v4
- name: Package chart
run: helm package ./keydb/ --destination ./.deploy/ --version ${{github.ref_name}}
- name: Run chart-releaser
uses: helm/[email protected]
with:
skip_packaging: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_PACKAGE_PATH: .deploy
CR_INDEX_PATH: index.yaml
CR_SKIP_EXISTING: true
- name: Notify failure
if: failure()
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_TEXT: "${{ github.repository }} release [${{ github.event.release.tag_name }}](${{ github.event.release.html_url }}) build failed."
run: |
send-to-mattermost