-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.31 KB
/
release.yaml
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
name: release
on:
push:
tags: ["[0-9]+.[0-9]+.[0-9]+"]
jobs:
package:
runs-on: ubuntu-latest
steps:
- name: Extract latest App Version
uses: tdemin/find-latest-tag@v1
id: app_version
with:
repo: https://${{ secrets.HELM_CHARTS_BOT }}@github.com/krateoplatformops/patch-provider.git
- name: Checkout
uses: actions/checkout@v3
- name: Extract Version
id: tagger
uses: battila7/get-version-action@v2
- name: Print Version
run: |
echo ${{steps.tagger.outputs.version}}
echo ${{steps.tagger.outputs.version-without-v}}
- name: Replace Version in Chart.yaml
run: sed -i 's/CHART_VERSION/${{ steps.tagger.outputs.version-without-v }}/g' ./chart/Chart.yaml
- name: Print latest App Version
run: echo ${{ steps.app_version.outputs.tag }}
- name: Replace App Version in Chart.yaml
run: sed -i 's/APP_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml
- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
token: ${{ secrets.HELM_CHARTS_BOT }}
charts_dir: ./
charts_url: https://charts.krateo.io
owner: krateoplatformops
repository: helm-charts
branch: gh-pages