self host chart deploy
This commit is contained in:
parent
1488d466b3
commit
7abf272d6d
|
@ -29,12 +29,12 @@ jobs:
|
||||||
release_version=$(cat lerna.json | jq -r '.version')
|
release_version=$(cat lerna.json | jq -r '.version')
|
||||||
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
|
||||||
|
|
||||||
# - name: Pull values.yaml from budibase-infra
|
- name: Pull values.yaml from budibase-infra
|
||||||
# run: |
|
run: |
|
||||||
# curl -H "Authorization: token ${{ secrets.GH_PERSONAL_TOKEN }}" \ [c3a7a9d12]
|
curl -H "Authorization: token ${{ secrets.GH_PERSONAL_TOKEN }}" \
|
||||||
# -H 'Accept: application/vnd.github.v3.raw' \
|
-H 'Accept: application/vnd.github.v3.raw' \
|
||||||
# -o values.preprod.yaml \
|
-o values.preprod.yaml \
|
||||||
# -L https://api.github.com/repos/budibase/budibase-infra/contents/kubernetes/values.preprod.yaml
|
-L https://api.github.com/repos/budibase/budibase-infra/contents/kubernetes/budibase-preprod/values.yaml
|
||||||
|
|
||||||
- name: Deploy to Preprod Environment
|
- name: Deploy to Preprod Environment
|
||||||
uses: deliverybot/helm@v1
|
uses: deliverybot/helm@v1
|
||||||
|
@ -50,10 +50,10 @@ jobs:
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
nginx: true
|
nginx: true
|
||||||
# value-files: >-
|
value-files: >-
|
||||||
# [
|
[
|
||||||
# "charts/budibase/values.yaml"
|
"values.preprod.yaml"
|
||||||
# ]
|
]
|
||||||
env:
|
env:
|
||||||
KUBECONFIG_FILE: '${{ secrets.PREPROD_KUBECONFIG }}'
|
KUBECONFIG_FILE: '${{ secrets.PREPROD_KUBECONFIG }}'
|
||||||
|
|
||||||
|
|
|
@ -41,18 +41,19 @@ jobs:
|
||||||
uses: azure/setup-helm@v1
|
uses: azure/setup-helm@v1
|
||||||
id: helm-install
|
id: helm-install
|
||||||
|
|
||||||
# - 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-${{ env.RELEASE_VERSION }}.tgz docs
|
git pull
|
||||||
# helm repo index docs
|
mv budibase-${{ env.RELEASE_VERSION }}.tgz docs
|
||||||
# git checkout gh-pages
|
helm repo index docs
|
||||||
# git add -A
|
git checkout gh-pages
|
||||||
# git commit -m "Helm Release: ${{ env.RELEASE_VERSION }}"
|
git add -A
|
||||||
# git push
|
git commit -m "Helm Release: ${{ env.RELEASE_VERSION }}"
|
||||||
# env:
|
git push
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# - name: Deploy
|
# - name: Deploy
|
||||||
# uses: peaceiris/actions-gh-pages@v3
|
# uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|
|
@ -56,38 +56,3 @@ jobs:
|
||||||
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
||||||
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
|
BUDIBASE_RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
|
||||||
|
|
||||||
# - name: Pull values.yaml from budibase-infra
|
|
||||||
# run: |
|
|
||||||
# curl -H "Authorization: token ${{ secrets.GH_PERSONAL_TOKEN }}" \ [c3a7a9d12]
|
|
||||||
# -H 'Accept: application/vnd.github.v3.raw' \
|
|
||||||
# -o values.preprod.yaml \
|
|
||||||
# -L https://api.github.com/repos/budibase/budibase-infra/contents/kubernetes/values.preprod.yaml
|
|
||||||
|
|
||||||
# - name: Deploy to Preprod Environment
|
|
||||||
# uses: deliverybot/helm@v1
|
|
||||||
# with:
|
|
||||||
# release: budibase-preprod
|
|
||||||
# namespace: budibase
|
|
||||||
# chart: charts/budibase
|
|
||||||
# token: ${{ github.token }}
|
|
||||||
# helm: helm3
|
|
||||||
# values: |
|
|
||||||
# globals:
|
|
||||||
# appVersion: ${{ steps.previoustag.outputs.tag }}
|
|
||||||
# ingress:
|
|
||||||
# nginx: true
|
|
||||||
# # value-files: >-
|
|
||||||
# # [
|
|
||||||
# # "charts/budibase/values.yaml"
|
|
||||||
# # ]
|
|
||||||
# env:
|
|
||||||
# KUBECONFIG_FILE: '${{ secrets.PREPROD_KUBECONFIG }}'
|
|
||||||
|
|
||||||
# - name: Discord Webhook Action
|
|
||||||
# uses: tsickert/discord-webhook@v4.0.0
|
|
||||||
# with:
|
|
||||||
# webhook-url: ${{ secrets.PROD_DEPLOY_WEBHOOK_URL }}
|
|
||||||
# content: "Preprod Deployment Complete: ${{ steps.previoustag.outputs.tag }} deployed to Budibase Pre-prod."
|
|
||||||
# embed-title: ${{ steps.previoustag.outputs.tag }}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue