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

View File

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