From e741834e83e6a62085c2d23e371c19e0d137f6c0 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 13 Dec 2021 17:30:12 +0100 Subject: [PATCH] adding separate helm release job --- .github/workflows/release-charts.yml | 36 ++++++++++++++++++++++++++ .github/workflows/release-selfhost.yml | 22 ++-------------- 2 files changed, 38 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/release-charts.yml diff --git a/.github/workflows/release-charts.yml b/.github/workflows/release-charts.yml new file mode 100644 index 0000000000..8dce3ee3c0 --- /dev/null +++ b/.github/workflows/release-charts.yml @@ -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 }}" \ No newline at end of file diff --git a/.github/workflows/release-selfhost.yml b/.github/workflows/release-selfhost.yml index 09c2babec1..4fc8a98350 100644 --- a/.github/workflows/release-selfhost.yml +++ b/.github/workflows/release-selfhost.yml @@ -1,4 +1,4 @@ -name: Budibase Release Selfhost +name: Budibase Release Docker Selfhost on: workflow_dispatch: @@ -42,22 +42,4 @@ jobs: DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} 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 }}" \ No newline at end of file + \ No newline at end of file