ci: Remove Segment key unless on master branch (#20669)
This commit is contained in:
parent
650ddf655c
commit
fb8870765a
6
.github/workflows/client-build.yml
vendored
6
.github/workflows/client-build.yml
vendored
|
|
@ -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
|
||||
run: echo "run_result=success" >> $GITHUB_OUTPUT > ~/run_result
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user