Add deploy buttons and clean environment variables (#974)
* add render.yaml * Clean environment variables --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
8
.github/workflows/ci-chromatic.yaml
vendored
8
.github/workflows/ci-chromatic.yaml
vendored
@ -11,9 +11,7 @@ jobs:
|
||||
if: ${{ contains(github.event.*.labels.*.name, 'run-chromatic') }} || github.event_name == 'push' }}
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REACT_APP_API_URL: http://127.0.0.1:3000/graphql
|
||||
REACT_APP_AUTH_URL: http://127.0.0.1:3000/auth
|
||||
REACT_APP_FILES_URL: http://127.0.0.1:3000/files
|
||||
REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
if: github.event_name == 'push'
|
||||
@ -33,9 +31,7 @@ jobs:
|
||||
run: |
|
||||
cd front
|
||||
touch .env
|
||||
echo "REACT_APP_API_URL: $REACT_APP_API_URL" >> .env
|
||||
echo "REACT_APP_AUTH_URL: $REACT_APP_AUTH_URL" >> .env
|
||||
echo "REACT_APP_FILES_URL: $REACT_APP_FILES_URL" >> .env
|
||||
echo "REACT_APP_SERVER_BASE_URL: $REACT_APP_SERVER_BASE_URL" >> .env
|
||||
- name: Front / Install Dependencies
|
||||
run: cd front && yarn
|
||||
- name: Publish to Chromatic
|
||||
|
||||
4
.github/workflows/ci-front.yaml
vendored
4
.github/workflows/ci-front.yaml
vendored
@ -8,9 +8,7 @@ jobs:
|
||||
front-test:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
REACT_APP_API_URL: http://localhost:3000/graphql
|
||||
REACT_APP_AUTH_URL: http://localhost:3000/auth
|
||||
REACT_APP_FILES_URL: http://localhost:3000/files
|
||||
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
if: github.event_name == 'push'
|
||||
|
||||
Reference in New Issue
Block a user