correct version for cloud deploy, added helm chart automation to selfhost job

This commit is contained in:
Martin McKeaveney 2021-12-16 13:38:21 +01:00
parent 367fca1c3b
commit f8f9c63c16
2 changed files with 25 additions and 22 deletions

View File

@ -21,11 +21,14 @@ jobs:
-o values.production.yaml \ -o values.production.yaml \
-L https://api.github.com/repos/budibase/budibase-infra/contents/kubernetes/values.yaml -L https://api.github.com/repos/budibase/budibase-infra/contents/kubernetes/values.yaml
- name: Get the latest budibase release version if not specifically set - name: Get the latest budibase release version
if: ${{ !github.event.inputs.version }}
id: version id: version
run: | run: |
if [ ${{ github.event.inputs.version }} == '' ]; then
release_version=$(cat lerna.json | jq -r '.version') release_version=$(cat lerna.json | jq -r '.version')
else
release_version=${{ github.event.inputs.version }}
fi
echo "::set-output name=release_version::$release_version" echo "::set-output name=release_version::$release_version"
- name: Configure AWS Credentials - name: Configure AWS Credentials
@ -45,5 +48,5 @@ jobs:
config-files: values.production.yaml config-files: values.production.yaml
chart-path: charts/budibase chart-path: charts/budibase
namespace: budibase namespace: budibase
values: appVersion=v${{ github.event.inputs.version || github.steps.version.outputs.release_version }} values: appVersion=v${{ github.steps.version.outputs.release_version }}
name: budibase-prod name: budibase-prod

View File

@ -40,21 +40,21 @@ jobs:
uses: azure/setup-helm@v1 uses: azure/setup-helm@v1
id: helm-install id: helm-install
# - name: Build and release helm chart - name: Build and release helm chart
# run: | run: |
# git config user.name "Budibase Helm Bot" git config user.name "Budibase Helm Bot"
# git config user.email "<>" git config user.email "<>"
# helm package charts/budibase helm package charts/budibase
# git checkout gh-pages git checkout gh-pages
# mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
# git add -A git add -A
# git commit -m "Helm Release: ${{ github.steps.version.outputs.release_version }}" git commit -m "Helm Release: ${{ github.steps.version.outputs.release_version }}"
# git push git push
# env: env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Perform github release - name: Perform Github Release
# run: | uses: softprops/action-gh-release@v1
# echo release name: v${{ github.steps.version.outputs.release_version }}
# env: with:
# GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" generate_release_notes: true