From 17fe14628f9fda51e03102e8e6d05d9d8ee59e14 Mon Sep 17 00:00:00 2001 From: Goutham Pratapa Date: Tue, 21 Mar 2023 10:54:54 +0530 Subject: [PATCH] ci: add release-portal url for deploy-previews (#21140) Add env variable APPSMITH_CLOUD_SERVICES_BASE_URL to make sure the licence_key generation requests hit only release-cs i.e "https://release-cs.appsmith.com/" and not production-cs "https://cs.appsmith.com/" --- scripts/deploy_preview.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/deploy_preview.sh b/scripts/deploy_preview.sh index 3bdf214988..2b65c608e1 100755 --- a/scripts/deploy_preview.sh +++ b/scripts/deploy_preview.sh @@ -64,6 +64,7 @@ helm upgrade -i $CHARTNAME appsmith/appsmith -n $NAMESPACE \ --set image.pullSecrets=$SECRET --set redis.enabled=false --set mongodb.enabled=false --set ingress.enabled=true \ --set "ingress.annotations.service\.beta\.kubernetes\.io/aws-load-balancer-ssl-cert=$AWS_RELEASE_CERT" \ --set "ingress.hosts[0].host=$DOMAINNAME, ingress.hosts[0].paths[0].path=/, ingress.hosts[0].paths[0].pathType=Prefix" \ - --set ingress.className="nginx" --set image.pullPolicy="Always" --set autoupdate.enabled="true" --set persistence.size=4Gi \ + --set ingress.className="nginx" --set applicationConfig.APPSMITH_CLOUD_SERVICES_BASE_URL="https://release-cs.appsmith.com" \ + --set image.pullPolicy="Always" --set autoupdate.enabled="true" --set persistence.size=4Gi \ --set applicationConfig.APPSMITH_MONGODB_URI="mongodb+srv://$DB_USERNAME:$DB_PASSWORD@$DB_URL/$DBNAME?retryWrites=true&minPoolSize=1&maxPoolSize=10&maxIdleTimeMS=900000&authSource=admin" \ --version $HELMCHART_VERSION