-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from NIAEFEUP/develop
Release refactor changes to main
- Loading branch information
Showing
134 changed files
with
9,039 additions
and
32,778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
REACT_APP_PROD=0 | ||
REACT_APP_RELEASE_DATE=2023-01-27 | ||
VITE_APP_PROD=0 | ||
VITE_APP_RELEASE_DATE=2023-01-27 | ||
PORT=3100 | ||
REACT_APP_SEMESTER= | ||
REACT_APP_SITE_TITLE= | ||
REACT_APP_BACKEND_URL= | ||
VITE_APP_PLAUSIBLE_DOMAIN= | ||
VITE_APP_PLAUSIBLE_HOST= | ||
VITE_APP_SEMESTER= | ||
VITE_APP_SITE_TITLE= | ||
VITE_APP_BACKEND_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: | ||
push: | ||
branches: [develop] | ||
jobs: | ||
deploy: | ||
name: "Deploy to netlify" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for the Netlify Preview | ||
uses: kamranayub/[email protected] | ||
id: waitForNetlify | ||
with: | ||
site_name: 'tts-fe-preview' | ||
max_timeout: 300 # 5 minutes | ||
env: | ||
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Upload to NIployments register | ||
uses: NIAEFEUP/[email protected] | ||
with: | ||
docker_dockerfile: Dockerfile | ||
docker_context: . | ||
docker_target: prod | ||
docker_build_args: | | ||
TTS_FE_VARS_METHOD=content-var | ||
TTS_FE_VARS_CONTENT=${{ secrets.TTS_FE_VARS_CONTENT }} | ||
NIPLOYMENTS_REGISTRY_URL: ${{ vars.NIPLOYMENTS_REGISTRY_URL }} | ||
NIPLOYMENTS_REGISTRY_USERNAME: ${{ vars.NIPLOYMENTS_REGISTRY_USERNAME }} | ||
NIPLOYMENTS_REGISTRY_PASSWORD: ${{ secrets.NIPLOYMENTS_REGISTRY_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
case "$1" in | ||
"dev") | ||
docker compose build tts-frontend $2 | ||
;; | ||
"prod") | ||
docker compose build tts-frontend-prod $2 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e # abort script if any command fails | ||
|
||
docker compose up $1 tts-frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
version: '3' | ||
services: | ||
tts-frontend: | ||
container_name: tts_frontend | ||
build: | ||
context: . | ||
target: dev | ||
volumes: | ||
- ./src:/usr/src/tts-fe/src | ||
- ./public:/usr/src/tts-fe/public | ||
ports: | ||
- 3100:3000 | ||
- 3100:3100 | ||
env_file: | ||
- .env | ||
|
||
tts-frontend-prod: | ||
container_name: tts_frontend_prod | ||
build: | ||
context: . | ||
target: prod | ||
args: | ||
- TTS_FE_VARS_METHOD=dotenv | ||
- TTS_FE_DOTENV_FILE=.env | ||
volumes: | ||
- ./src:/usr/src/tts-fe/src | ||
- ./public:/usr/src/tts-fe/public | ||
ports: | ||
- 3100:80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[[redirects]] | ||
from = "/*" | ||
to = "/index.html" | ||
status = 200 |
Oops, something went wrong.