correct version for cloud deploy, added helm chart automation to selfhost job
This commit is contained in:
parent
367fca1c3b
commit
f8f9c63c16
|
@ -21,12 +21,15 @@ 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: |
|
||||
release_version=$(cat lerna.json | jq -r '.version')
|
||||
echo "::set-output name=release_version::$release_version"
|
||||
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
|
||||
uses: aws-actions/configure-aws-credentials@v1
|
||||
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue