diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml index 7f23833949..d0a76b3d32 100644 --- a/.github/workflows/client-build.yml +++ b/.github/workflows/client-build.yml @@ -124,9 +124,11 @@ jobs: # This is to ensure that we don't need to configure it in each installation - name: Create the bundle run: | + if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then + export REACT_APP_SEGMENT_CE_KEY="${{ secrets.APPSMITH_SEGMENT_CE_KEY }}" + fi REACT_APP_ENVIRONMENT=${{steps.vars.outputs.REACT_APP_ENVIRONMENT}} \ REACT_APP_FUSIONCHARTS_LICENSE_KEY=${{ secrets.APPSMITH_FUSIONCHARTS_LICENSE_KEY }} \ - REACT_APP_SEGMENT_CE_KEY=${{ secrets.APPSMITH_SEGMENT_CE_KEY }} \ SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }} \ REACT_APP_VERSION_ID=${{ steps.vars.outputs.version }} \ REACT_APP_VERSION_RELEASE_DATE=$(date -u '+%Y-%m-%dT%H:%M:%SZ') \ @@ -150,4 +152,4 @@ jobs: # Set status = success - name: Save the status of the run - run: echo "run_result=success" >> $GITHUB_OUTPUT > ~/run_result \ No newline at end of file + run: echo "run_result=success" >> $GITHUB_OUTPUT > ~/run_result diff --git a/.github/workflows/test-build-docker-image.yml b/.github/workflows/test-build-docker-image.yml index be572b8660..33e3c805c0 100644 --- a/.github/workflows/test-build-docker-image.yml +++ b/.github/workflows/test-build-docker-image.yml @@ -35,7 +35,7 @@ jobs: secrets: inherit with: pr: 0 - + perf-test: needs: [client-build, server-build, rts-build] # Only run if the build step is successful @@ -219,8 +219,6 @@ jobs: context: . push: true platforms: linux/arm64,linux/amd64 - build-args: | - APPSMITH_SEGMENT_CE_KEY=${{ secrets.APPSMITH_SEGMENT_CE_KEY_RELEASE }} tags: | ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-ce:${{steps.vars.outputs.tag}} @@ -266,8 +264,6 @@ jobs: with: context: app/server push: true - build-args: | - APPSMITH_SEGMENT_CE_KEY=${{ secrets.APPSMITH_SEGMENT_CE_KEY_RELEASE }} tags: | ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-server:${{steps.vars.outputs.tag}}