1
0
Fork 0
mirror of synced 2024-06-26 18:10:51 +12:00

word count to verify production yaml

This commit is contained in:
Martin McKeaveney 2021-12-16 16:04:08 +01:00
parent 7ddfb51740
commit 32d18087b6
3 changed files with 20 additions and 20 deletions

View file

@ -20,6 +20,7 @@ jobs:
-H 'Accept: application/vnd.github.v3.raw' \
-o values.production.yaml \
-L https://api.github.com/repos/budibase/budibase-infra/contents/kubernetes/values.yaml
wc -l values.production.yaml
- name: Get the latest budibase release version
id: version

View file

@ -17,7 +17,7 @@ jobs:
# Get latest release version
sudo apt-get install -y jq
release_version=$(cat lerna.json | jq -r '.version')
echo "::set-output name=release_version::$release_version"
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
release_tag=v$release_version
# Pull apps and worker images
@ -40,27 +40,26 @@ jobs:
uses: azure/setup-helm@v1
id: helm-install
- run: helm package charts/budibase
# - run: helm package charts/budibase
- uses: actions/checkout@v2
with:
ref: gh-pages
# - uses: actions/checkout@v2
# with:
# ref: gh-pages
- name: Build and release helm chart
run: |
git config user.name "Budibase Helm Bot"
git config user.email "<>"
mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
helm repo index 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 "<>"
# mv budibase-${{ env.RELEASE_VERSION }}.tgz docs
# helm repo index docs
# git add -A
# git commit -m "Helm Release: ${{ env.RELEASE_VERSION }}"
# git push
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Perform Github Release
uses: softprops/action-gh-release@v1
with:
name: v${{ github.steps.version.outputs.release_version }}
name: v${{ env.RELEASE_VERSION }}
generate_release_notes: true

View file

@ -72,10 +72,10 @@ jobs:
# chart: charts/budibase
# token: ${{ github.token }}
# values: |
# appVersion: ${{ steps.previoustag.outputs.tag }}
# globals.appVersion: ${{ steps.previoustag.outputs.tag }}
# value-files: >-
# [
# "values.preprod.yaml"
# "charts/budibase/values.yaml"
# ]
# env:
# KUBECONFIG_FILE: '${{ secrets.PREPROD_KUBECONFIG }}'