diff --git a/.github/workflows/ad-hoc-deploy-preview.yml b/.github/workflows/ad-hoc-deploy-preview.yml index 05b94dcd4d..dadf5f742e 100644 --- a/.github/workflows/ad-hoc-deploy-preview.yml +++ b/.github/workflows/ad-hoc-deploy-preview.yml @@ -43,7 +43,7 @@ jobs: # } # )' # #TODO Add mongo URI as secret - + server-build: name: server-build uses: ./.github/workflows/server-build.yml @@ -145,6 +145,8 @@ jobs: password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} repository: ${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-dp tags: ${{ github.event.inputs.sub-domain-name }} + build-args: | + APPSMITH_CLOUD_SERVICES_BASE_URL=https://release-cs.appsmith.com outputs: imageHash: ${{ github.event.inputs.sub-domain-name }} diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 0eb08e8b35..fb6ea2a4f9 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -81,6 +81,9 @@ jobs: if [[ "${{ inputs.pr }}" != 0 ]]; then args+=(--cache-from "${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-${{ vars.EDITION }}:release") fi + if [[ "${{ inputs.pr }}" != 0 || "${{ github.ref_name }}" != master ]]; then + args+=(--build-arg "APPSMITH_CLOUD_SERVICES_BASE_URL=https://release-cs.appsmith.com") + fi docker build -t cicontainer "${args[@]}" . # Saving the docker image to tar file diff --git a/.github/workflows/on-demand-build-docker-image-deploy-preview.yml b/.github/workflows/on-demand-build-docker-image-deploy-preview.yml index 8d0e5c1d33..ee53b98777 100644 --- a/.github/workflows/on-demand-build-docker-image-deploy-preview.yml +++ b/.github/workflows/on-demand-build-docker-image-deploy-preview.yml @@ -174,6 +174,8 @@ jobs: password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} repository: ${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-dp tags: ce-${{ github.event.client_payload.pull_request.number }} + build-args: | + APPSMITH_CLOUD_SERVICES_BASE_URL=https://release-cs.appsmith.com outputs: imageHash: ce-${{ github.event.client_payload.pull_request.number }} diff --git a/.github/workflows/test-build-docker-image.yml b/.github/workflows/test-build-docker-image.yml index 5b2570caa5..0a21720be2 100644 --- a/.github/workflows/test-build-docker-image.yml +++ b/.github/workflows/test-build-docker-image.yml @@ -200,6 +200,7 @@ jobs: platforms: linux/arm64,linux/amd64 build-args: | APPSMITH_SEGMENT_CE_KEY=${{ secrets.APPSMITH_SEGMENT_CE_KEY_RELEASE }} + APPSMITH_CLOUD_SERVICES_BASE_URL=https://release-cs.appsmith.com tags: | ${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-ce:release @@ -269,4 +270,4 @@ jobs: APPSMITH_SEGMENT_CE_KEY=${{ secrets.APPSMITH_SEGMENT_CE_KEY }} tags: | ${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-ce:${{ github.sha }} - ${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-ce:nightly \ No newline at end of file + ${{ vars.DOCKER_HUB_ORGANIZATION }}/appsmith-ce:nightly