Skip to content

Commit

Permalink
Fix the netlify domain (#3821)
Browse files Browse the repository at this point in the history
* Fix the netlify domain
  • Loading branch information
himadrisingh authored Jan 10, 2024
1 parent 09061d6 commit a926e55
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/rill-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,23 @@ jobs:
with:
node-version: 16

- name: Setup Env variables from Inputs
env:
ENV: ${{ inputs.env }}
RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }}
- name: Setup Env variables from Inputs for Prod
if: ( github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') ) || ( github.event_name == 'workflow_dispatch' && inputs.env == 'prod' )
run: |-
echo "NETLIFY_SITE_ID=afb26917-7a60-47d9-81dc-c0babbb0d9a9" >> $GITHUB_ENV
echo "DOMAIN=rilldata.com" >> $GITHUB_ENV
- name: Setup Env variables from Inputs for Stage
if: ( github.event_name == 'push' && startsWith(github.ref_name, 'release') ) || ( github.event_name == 'workflow_dispatch' && inputs.env == 'stage' )
run: |-
echo "NETLIFY_SITE_ID=e73ac785-882e-425a-8fc8-5432528bb374" >> $GITHUB_ENV
echo "DOMAIN=rilldata.io" >> $GITHUB_ENV
- name: Setup Env variables from Inputs for Test
if: ( github.event_name == 'push' && startsWith(github.ref_name, 'main') ) || ( github.event_name == 'workflow_dispatch' && inputs.env == 'test' )
run: |-
# if push is via tag, should be deployed to prod
# if push is to release branch, should be deployed to stage
# else go to test, workflow_dispatch can choose the environment.
if [[ ( $GITHUB_EVENT_NAME == "push" && $RELEASE == "true" ) || ( $GITHUB_EVENT_NAME == "workflow_dispatch" && $ENV == "prod" ) ]]; then
echo "NETLIFY_SITE_ID=afb26917-7a60-47d9-81dc-c0babbb0d9a9" >> $GITHUB_ENV
echo "DOMAIN=rilldata.com" >> $GITHUB_ENV
else
if [[ ( $GITHUB_EVENT_NAME == "push" && $GITHUB_REF_NAME =~ "release.*" ) || ( $GITHUB_EVENT_NAME == "workflow_dispatch" && $ENV == "stage" ) ]]; then
echo "NETLIFY_SITE_ID=e73ac785-882e-425a-8fc8-5432528bb374" >> $GITHUB_ENV
echo "DOMAIN=rilldata.io" >> $GITHUB_ENV
else
echo "NETLIFY_SITE_ID=ad7b8d67-9b24-4b2a-8985-1a80b7b0ab11" >> $GITHUB_ENV
echo "DOMAIN=rilldata.in" >> $GITHUB_ENV
fi
fi
echo "NETLIFY_SITE_ID=ad7b8d67-9b24-4b2a-8985-1a80b7b0ab11" >> $GITHUB_ENV
echo "DOMAIN=rilldata.in" >> $GITHUB_ENV
- name: Build Cloud UI
run: |-
Expand Down

1 comment on commit a926e55

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.