From 110b985f12f8a07eee5dd47c45eccf7abb4ac136 Mon Sep 17 00:00:00 2001 From: Abhijeet <41686026+abhvsn@users.noreply.github.com> Date: Thu, 16 Nov 2023 13:00:56 +0530 Subject: [PATCH] chore: Add `LaunchDarkly` configs in CI run to mock feature flags (#28761) Note: We have to create `LAUNCHDARKLY_BUSINESS_FLAGS_SERVER_KEY` secret before merging this PR. (cherry picked from commit 67d7e773b9325b0f710cdd697d8feb74abfba1a5) --- .github/workflows/ci-test-custom-script.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci-test-custom-script.yml b/.github/workflows/ci-test-custom-script.yml index 3c2f74149d..c009d7bb1d 100644 --- a/.github/workflows/ci-test-custom-script.yml +++ b/.github/workflows/ci-test-custom-script.yml @@ -186,6 +186,8 @@ jobs: - name: Run Appsmith & TED docker image if: steps.run_result.outputs.run_result != 'success' + env: + LAUNCHDARKLY_BUSINESS_FLAGS_SERVER_KEY: ${{ secrets.LAUNCHDARKLY_BUSINESS_FLAGS_SERVER_KEY }} working-directory: "." run: | sudo /etc/init.d/ssh stop ; @@ -223,6 +225,7 @@ jobs: -e FLAGSMITH_URL=http://host.docker.internal:5001/flagsmith \ -e FLAGSMITH_SERVER_KEY=dummykey \ -e FLAGSMITH_SERVER_KEY_BUSINESS_FEATURES=dummykeybusinessfeatures \ + -e LAUNCHDARKLY_BUSINESS_FLAGS_SERVER_KEY=$LAUNCHDARKLY_BUSINESS_FLAGS_SERVER_KEY \ appsmith/cloud-services:release cd cicontainerlocal docker run -d --name appsmith -p 80:80 -p 9001:9001 \