-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 1.26 KB
/
publish_helmcharts.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
name: Publish Helm charts
on:
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get version
id: semver
uses: LykkeBusiness/[email protected]
with:
tag: ${{ github.ref }}
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Package tftbscbridge chart
uses: WyriHaximus/github-action-helm3@v3
with:
exec: helm package -d packagedcharts --app-version ${{ steps.semver.outputs.non-prefixed }} --version ${{ steps.semver.outputs.non-prefixed }} bsc/helmchart/tftbscbridge
- name: Upload tftbscbridge packaged chart
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: packagedcharts/tftbscbridge-${{ steps.semver.outputs.non-prefixed }}.tgz
asset_name: tftbscbridge-${{ steps.semver.outputs.non-prefixed }}.tgz
asset_content_type: application/gzip