v1.5.1 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |