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:
Félix Malfait
2023-07-31 14:36:04 -07:00
committed by GitHub
parent a90cbac5e6
commit b028d9fd2a
31 changed files with 194 additions and 112 deletions

View File

@ -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

View File

@ -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'