mirror of https://github.com/Budibase/budibase.git
10 changed files with 78 additions and 45 deletions
Binary file not shown.
@ -1,41 +1,24 @@ |
|||
apiVersion: v2 |
|||
name: budibase |
|||
description: Budibase is an open source low-code platform, helping thousands of teams build apps for their workplace in minutes. |
|||
description: >- |
|||
Budibase is an open source low-code platform, helping thousands of teams build |
|||
apps for their workplace in minutes. |
|||
keywords: |
|||
- low-code |
|||
- database |
|||
- cluster |
|||
- low-code |
|||
- database |
|||
- cluster |
|||
sources: |
|||
- https://github.com/Budibase/budibase |
|||
- https://budibase.com |
|||
|
|||
# A chart can be either an 'application' or a 'library' chart. |
|||
# |
|||
# Application charts are a collection of templates that can be packaged into versioned archives |
|||
# to be deployed. |
|||
# |
|||
# Library charts provide useful utilities or functions for the chart developer. They're included as |
|||
# a dependency of application charts to inject those utilities and functions into the rendering |
|||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. |
|||
- https://github.com/Budibase/budibase |
|||
- https://budibase.com |
|||
type: application |
|||
|
|||
# This is the chart version. This version number should be incremented each time you make changes |
|||
# to the chart and its templates, including the app version. |
|||
# Versions are expected to follow Semantic Versioning (https://semver.org/) |
|||
version: 0.2.3 |
|||
|
|||
# This is the version number of the application being deployed. This version number should be |
|||
# incremented each time you make changes to the application. Versions are not expected to |
|||
# follow Semantic Versioning. They should reflect the version the application is using. |
|||
# It is recommended to use it with quotes. |
|||
appVersion: "1.0.6" |
|||
|
|||
version: 0.2.4 |
|||
appVersion: 2.0.0 |
|||
dependencies: |
|||
- name: couchdb |
|||
version: 3.3.4 |
|||
repository: https://apache.github.io/couchdb-helm |
|||
condition: services.couchdb.enabled |
|||
- name: ingress-nginx |
|||
version: 3.35.0 |
|||
version: 3.35.0 |
|||
repository: https://github.com/kubernetes/ingress-nginx |
|||
condition: ingress.nginx |
|||
|
|||
@ -0,0 +1,39 @@ |
|||
const yaml = require("js-yaml") |
|||
const { execSync } = require("child_process") |
|||
const fs = require("fs") |
|||
const path = require("path") |
|||
|
|||
const UpgradeTypes = { |
|||
MAJOR: "major", |
|||
MINOR: "minor", |
|||
PATCH: "patch" |
|||
} |
|||
|
|||
const CHART_PATH = path.join(__dirname, "../", "hosting", "kubernetes", "budibase", "Chart.yaml") |
|||
const UPGRADE_VERSION = process.env.BUDIBASE_RELEASE_VERSION |
|||
const UPGRADE_TYPE = process.env.HELM_CHART_UPGRADE_TYPE || UpgradeTypes.PATCH |
|||
|
|||
if (!UPGRADE_VERSION) { |
|||
throw new Error("BUDIBASE_RELEASE_VERSION env var must be set.") |
|||
} |
|||
|
|||
try { |
|||
const chartFile = fs.readFileSync(CHART_PATH, "utf-8") |
|||
const chart = yaml.load(chartFile) |
|||
|
|||
// Upgrade app version in chart to match budibase release version
|
|||
chart.appVersion = UPGRADE_VERSION |
|||
|
|||
// semantically version the chart
|
|||
const [major, minor, patch] = chart.version.split(".") |
|||
const newPatch = parseInt(patch) + 1 |
|||
chart.version = [major, minor, newPatch].join(".") |
|||
const updatedChartYaml = yaml.dump(chart) |
|||
fs.writeFileSync(CHART_PATH, updatedChartYaml) |
|||
|
|||
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 |
|||
} |
|||
@ -1,3 +0,0 @@ |
|||
cd docs |
|||
helm package ../hosting/kubernetes/budibase |
|||
helm repo index . --url https://budibase.github.io/budibase |
|||
Loading…
Reference in new issue