adding separate helm release job

This commit is contained in:
Martin McKeaveney 2021-12-13 17:30:12 +01:00
parent 9223149036
commit e741834e83
2 changed files with 38 additions and 20 deletions

36
.github/workflows/release-charts.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Budibase Release Helm Charts
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
- run: yarn release:helm
env:
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
- name: Configure Git
run: |
git config user.name "Budibase Helm Bot"
git config user.email "<>"
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -1,4 +1,4 @@
name: Budibase Release Selfhost
name: Budibase Release Docker Selfhost
on:
workflow_dispatch:
@ -43,21 +43,3 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
- uses: azure/setup-helm@v1
id: install
- run: yarn release:helm
env:
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
- name: Configure Git and Helm
run: |
git config user.name "Budibase Helm Bot"
git config user.email "<>"
helm repo add budibase https://budibase.github.io/budibase
helm repo update
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"