1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

CI Automation for helm chart release

This commit is contained in:
Martin McKeaveney 2021-12-08 17:13:00 +00:00
parent cb9b7f75ce
commit 89ab5520d4
5 changed files with 10 additions and 4 deletions

View file

@ -43,10 +43,14 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }} 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 - uses: azure/setup-helm@v1
id: install id: install
# So, we need to inject the values into this
- run: yarn release:helm - run: yarn release:helm
- name: Run chart-releaser - name: Run chart-releaser

View file

@ -56,3 +56,5 @@ jobs:
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }} DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }} DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }} BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
# Release to pre-prod environment

View file

@ -2,7 +2,7 @@ apiVersion: v1
entries: entries:
budibase: budibase:
- apiVersion: v2 - apiVersion: v2
appVersion: 2.0.0 appVersion: 1.0.6
created: "2021-12-08T16:26:47.061065Z" created: "2021-12-08T16:26:47.061065Z"
dependencies: dependencies:
- condition: services.couchdb.enabled - condition: services.couchdb.enabled

View file

@ -12,7 +12,7 @@ sources:
- https://budibase.com - https://budibase.com
type: application type: application
version: 0.2.4 version: 0.2.4
appVersion: 2.0.0 appVersion: 1.0.6
dependencies: dependencies:
- name: couchdb - name: couchdb
version: 3.3.4 version: 3.3.4

View file

@ -31,8 +31,8 @@ try {
const updatedChartYaml = yaml.dump(chart) const updatedChartYaml = yaml.dump(chart)
fs.writeFileSync(CHART_PATH, updatedChartYaml) fs.writeFileSync(CHART_PATH, updatedChartYaml)
// package the chart and write to docs dir
execSync(`helm package hosting/kubernetes/budibase --destination docs`) execSync(`helm package hosting/kubernetes/budibase --destination docs`)
execSync(`helm repo index docs --url https://budibase.github.io/budibase`)
} catch (err) { } catch (err) {
console.error("Error releasing helm chart") console.error("Error releasing helm chart")
throw err throw err