word count to verify production yaml
This commit is contained in:
parent
19f09d188a
commit
8f32aaabf2
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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 }}'
|
||||
|
|
Loading…
Reference in New Issue