From 311fc7841e00395ab06de99de5cb62b8ee4961a6 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 12 Aug 2022 17:42:46 +0100 Subject: [PATCH 1/3] roll out release services after deployment --- .github/workflows/deploy-release.yml | 2 +- .github/workflows/release-develop.yml | 7 +++++++ .../src/components/backend/DataTable/DataTable.svelte | 1 + .../backend/DataTable/buttons/ImportButton.svelte | 3 ++- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index 0fb8a5fea0..ac579b43df 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -58,7 +58,7 @@ jobs: helm: helm3 values: | globals: - appVersion: develop + appVersion: ${{ env.RELEASE_VERSION }} ingress: enabled: true nginx: true diff --git a/.github/workflows/release-develop.yml b/.github/workflows/release-develop.yml index 631308d945..f9158c03d6 100644 --- a/.github/workflows/release-develop.yml +++ b/.github/workflows/release-develop.yml @@ -120,6 +120,13 @@ jobs: env: KUBECONFIG_FILE: '${{ secrets.RELEASE_KUBECONFIG }}' + - name: Re roll the services + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.RELEASE_KUBECONFIG }} + with: + args: rollout restart deployment proxy-service -n budibase && kubectl rollout restart deployment app-service -n budibase && kubectl rollout restart deployment worker-service -n budibase + - name: Discord Webhook Action uses: tsickert/discord-webhook@v4.0.0 with: diff --git a/packages/builder/src/components/backend/DataTable/DataTable.svelte b/packages/builder/src/components/backend/DataTable/DataTable.svelte index 37742626cd..7cb368830e 100644 --- a/packages/builder/src/components/backend/DataTable/DataTable.svelte +++ b/packages/builder/src/components/backend/DataTable/DataTable.svelte @@ -167,6 +167,7 @@ {/if} diff --git a/packages/builder/src/components/backend/DataTable/buttons/ImportButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ImportButton.svelte index 6b9c3dd6dd..99d39a0d48 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/ImportButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/ImportButton.svelte @@ -3,11 +3,12 @@ import ImportModal from "../modals/ImportModal.svelte" export let tableId + export let disabled let modal - + Import From fc59d1b59197d6357d2aac68013315636ede3bab Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 12 Aug 2022 17:45:31 +0100 Subject: [PATCH 2/3] reset appVersion to develop --- .github/workflows/deploy-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index ac579b43df..0fb8a5fea0 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -58,7 +58,7 @@ jobs: helm: helm3 values: | globals: - appVersion: ${{ env.RELEASE_VERSION }} + appVersion: develop ingress: enabled: true nginx: true From e47f60d371c48b4b0de813dd449dbe99383c698c Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 12 Aug 2022 17:48:50 +0100 Subject: [PATCH 3/3] add to release job --- .github/workflows/deploy-release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index 0fb8a5fea0..024b97597f 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -68,6 +68,13 @@ jobs: ] env: KUBECONFIG_FILE: '${{ secrets.RELEASE_KUBECONFIG }}' + + - name: Re roll the services + uses: actions-hub/kubectl@master + env: + KUBE_CONFIG: ${{ secrets.RELEASE_KUBECONFIG }} + with: + args: rollout restart deployment proxy-service -n budibase && kubectl rollout restart deployment app-service -n budibase && kubectl rollout restart deployment worker-service -n budibase - name: Discord Webhook Action uses: tsickert/discord-webhook@v4.0.0