word count to verify production yaml
This commit is contained in:
parent
7ddfb51740
commit
32d18087b6
|
@ -20,6 +20,7 @@ jobs:
|
||||||
-H 'Accept: application/vnd.github.v3.raw' \
|
-H 'Accept: application/vnd.github.v3.raw' \
|
||||||
-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
|
||||||
|
wc -l values.production.yaml
|
||||||
|
|
||||||
- name: Get the latest budibase release version
|
- name: Get the latest budibase release version
|
||||||
id: version
|
id: version
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
# Get latest release version
|
# Get latest release version
|
||||||
sudo apt-get install -y jq
|
sudo apt-get install -y jq
|
||||||
release_version=$(cat lerna.json | jq -r '.version')
|
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
|
release_tag=v$release_version
|
||||||
|
|
||||||
# Pull apps and worker images
|
# Pull apps and worker images
|
||||||
|
@ -40,27 +40,26 @@ jobs:
|
||||||
uses: azure/setup-helm@v1
|
uses: azure/setup-helm@v1
|
||||||
id: helm-install
|
id: helm-install
|
||||||
|
|
||||||
- run: helm package charts/budibase
|
# - run: helm package charts/budibase
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
# - uses: actions/checkout@v2
|
||||||
with:
|
# with:
|
||||||
ref: gh-pages
|
# ref: gh-pages
|
||||||
|
|
||||||
|
|
||||||
- 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 "<>"
|
||||||
mv budibase-${{ github.steps.version.outputs.release_version }}.tgz docs
|
# mv budibase-${{ env.RELEASE_VERSION }}.tgz docs
|
||||||
helm repo index docs
|
# helm repo index docs
|
||||||
git add -A
|
# git add -A
|
||||||
git commit -m "Helm Release: ${{ github.steps.version.outputs.release_version }}"
|
# git commit -m "Helm Release: ${{ env.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
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: v${{ github.steps.version.outputs.release_version }}
|
name: v${{ env.RELEASE_VERSION }}
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
|
@ -72,10 +72,10 @@ jobs:
|
||||||
# chart: charts/budibase
|
# chart: charts/budibase
|
||||||
# token: ${{ github.token }}
|
# token: ${{ github.token }}
|
||||||
# values: |
|
# values: |
|
||||||
# appVersion: ${{ steps.previoustag.outputs.tag }}
|
# globals.appVersion: ${{ steps.previoustag.outputs.tag }}
|
||||||
# value-files: >-
|
# value-files: >-
|
||||||
# [
|
# [
|
||||||
# "values.preprod.yaml"
|
# "charts/budibase/values.yaml"
|
||||||
# ]
|
# ]
|
||||||
# env:
|
# env:
|
||||||
# KUBECONFIG_FILE: '${{ secrets.PREPROD_KUBECONFIG }}'
|
# KUBECONFIG_FILE: '${{ secrets.PREPROD_KUBECONFIG }}'
|
||||||
|
|
Loading…
Reference in New Issue