From 89ab5520d4ec417d059a25cbd2d24469f20a6718 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 8 Dec 2021 17:13:00 +0000 Subject: [PATCH] CI Automation for helm chart release --- .github/workflows/release-selfhost.yml | 6 +++++- .github/workflows/release.yml | 2 ++ docs/index.yaml | 2 +- hosting/kubernetes/budibase/Chart.yaml | 2 +- scripts/releaseHelmChart.js | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-selfhost.yml b/.github/workflows/release-selfhost.yml index 444071fa7b..1c1806a0ef 100644 --- a/.github/workflows/release-selfhost.yml +++ b/.github/workflows/release-selfhost.yml @@ -43,10 +43,14 @@ jobs: DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }} + - name: Configure Git + run: | + git config user.name "Budibase Production Bot" + git config user.email "<>" + - uses: azure/setup-helm@v1 id: install - # So, we need to inject the values into this - run: yarn release:helm - name: Run chart-releaser diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71432c2403..d4142f7ac9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,3 +56,5 @@ jobs: DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }} + + # Release to pre-prod environment \ No newline at end of file diff --git a/docs/index.yaml b/docs/index.yaml index 21586652f6..232f3445f9 100644 --- a/docs/index.yaml +++ b/docs/index.yaml @@ -2,7 +2,7 @@ apiVersion: v1 entries: budibase: - apiVersion: v2 - appVersion: 2.0.0 + appVersion: 1.0.6 created: "2021-12-08T16:26:47.061065Z" dependencies: - condition: services.couchdb.enabled diff --git a/hosting/kubernetes/budibase/Chart.yaml b/hosting/kubernetes/budibase/Chart.yaml index 790c7845d8..0528e56562 100644 --- a/hosting/kubernetes/budibase/Chart.yaml +++ b/hosting/kubernetes/budibase/Chart.yaml @@ -12,7 +12,7 @@ sources: - https://budibase.com type: application version: 0.2.4 -appVersion: 2.0.0 +appVersion: 1.0.6 dependencies: - name: couchdb version: 3.3.4 diff --git a/scripts/releaseHelmChart.js b/scripts/releaseHelmChart.js index 4c022c9a0c..9c62f3dd8f 100755 --- a/scripts/releaseHelmChart.js +++ b/scripts/releaseHelmChart.js @@ -31,8 +31,8 @@ try { const updatedChartYaml = yaml.dump(chart) fs.writeFileSync(CHART_PATH, updatedChartYaml) + // package the chart and write to docs dir execSync(`helm package hosting/kubernetes/budibase --destination docs`) - execSync(`helm repo index docs --url https://budibase.github.io/budibase`) } catch (err) { console.error("Error releasing helm chart") throw err