ci: make upgrades easy to deploy-previews (#20198)
Make upgrades easy for deploy previews.
This commit is contained in:
parent
cd051ac941
commit
a8689792dc
|
|
@ -95,9 +95,9 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
repository: ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-dp
|
repository: ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-dp
|
||||||
tags: ${{ github.event.client_payload.pull_request.number }}-ce
|
tags: ce-${{ github.event.client_payload.pull_request.number }}
|
||||||
outputs:
|
outputs:
|
||||||
imageHash: ${{ github.event.client_payload.pull_request.number }}-ce
|
imageHash: ce-${{ github.event.client_payload.pull_request.number }}
|
||||||
|
|
||||||
build-deploy-preview:
|
build-deploy-preview:
|
||||||
needs: [push-image]
|
needs: [push-image]
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,10 @@ export AWS_ACCESS_KEY_ID=$(echo $sts_output | jq -r '.Credentials''.AccessKeyId'
|
||||||
export AWS_SECRET_ACCESS_KEY=$(echo $sts_output | jq -r '.Credentials''.SecretAccessKey');\
|
export AWS_SECRET_ACCESS_KEY=$(echo $sts_output | jq -r '.Credentials''.SecretAccessKey');\
|
||||||
export AWS_SESSION_TOKEN=$(echo $sts_output | jq -r '.Credentials''.SessionToken');
|
export AWS_SESSION_TOKEN=$(echo $sts_output | jq -r '.Credentials''.SessionToken');
|
||||||
|
|
||||||
export NAMESPACE="$PULL_REQUEST_NUMBER"ce
|
export NAMESPACE=ce"$PULL_REQUEST_NUMBER"
|
||||||
export SECRET="$PULL_REQUEST_NUMBER"ce
|
export CHARTNAME=ce"$PULL_REQUEST_NUMBER"
|
||||||
export DOMAINNAME="$PULL_REQUEST_NUMBER"-ce.dp.appsmith.com
|
export SECRET=ce"$PULL_REQUEST_NUMBER"
|
||||||
|
export DOMAINNAME=ce-"$PULL_REQUEST_NUMBER".dp.appsmith.com
|
||||||
export HELMCHART="appsmith"
|
export HELMCHART="appsmith"
|
||||||
export HELMCHART_URL="http://helm.appsmith.com"
|
export HELMCHART_URL="http://helm.appsmith.com"
|
||||||
export HELMCHART_VERSION="2.0.0"
|
export HELMCHART_VERSION="2.0.0"
|
||||||
|
|
@ -57,7 +58,7 @@ echo "Add appsmith-ce to helm repo"
|
||||||
AWS_REGION=ap-south-1 helm repo add $HELMCHART $HELMCHART_URL
|
AWS_REGION=ap-south-1 helm repo add $HELMCHART $HELMCHART_URL
|
||||||
|
|
||||||
echo "Deploy appsmith helm chart"
|
echo "Deploy appsmith helm chart"
|
||||||
helm install appsmith/appsmith --generate-name -n $NAMESPACE \
|
helm upgrade -i $CHARTNAME --generate-name -n $NAMESPACE \
|
||||||
--create-namespace --set image.repository=$DOCKER_HUB_ORGANIZATION/appsmith-dp --set image.tag=$IMAGE_HASH \
|
--create-namespace --set image.repository=$DOCKER_HUB_ORGANIZATION/appsmith-dp --set image.tag=$IMAGE_HASH \
|
||||||
--set image.pullSecrets=$SECRET --set redis.enabled=false --set mongodb.enabled=false --set ingress.enabled=true \
|
--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.annotations.service\.beta\.kubernetes\.io/aws-load-balancer-ssl-cert=$AWS_RELEASE_CERT" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user