-
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 branch 'main' into backend-ci-cd
# Conflicts: # app/backend/src/main/java/com/app/gamereview/controller/ImageController.java
- Loading branch information
Showing
348 changed files
with
56,773 additions
and
245 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,49 @@ | ||
name: Deploy to EC2 | ||
|
||
on: | ||
push: | ||
branches: | ||
- backend-ci-cd | ||
|
||
jobs: | ||
build_and_push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Maven | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Build with Maven | ||
run: | | ||
cd app/backend | ||
mvn clean install | ||
- name: Build Docker image | ||
run: | | ||
cd app/backend | ||
docker build -t bounswe2023group5:latest . | ||
- name: Login to Docker Hub | ||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||
|
||
- name: Push to Docker Hub | ||
run: | | ||
docker tag bounswe2023group5:latest unaldenizzz/bounswe2023group5:latest | ||
docker push unaldenizzz/bounswe2023group5:latest | ||
deploy_to_ec2: | ||
needs: build_and_push | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to EC2 | ||
env: | ||
PRIVATE_KEY: ${{ secrets.EC2_SSH_PRIVATE_KEY }} | ||
run: | | ||
echo "$PRIVATE_KEY" > private_key.pem | ||
chmod 600 private_key.pem | ||
ssh -o StrictHostKeyChecking=no -i private_key.pem [email protected] 'updateswe' |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface AuthorizationRequired { | ||
|
||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
43 changes: 43 additions & 0 deletions
43
app/frontend/src/Components/GameDetails/Summary/Summary.module.scss
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,43 @@ | ||
@import "../../../colors"; | ||
|
||
.summary-container { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 10px; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.field-container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 1em; | ||
} | ||
|
||
.tag-container { | ||
display: flex; | ||
background-color: $violet-light-90; | ||
height: 60px; | ||
align-items: center; | ||
border-radius: 0.5rem; | ||
gap: 0.5em; | ||
padding: 10px; | ||
} | ||
|
||
.summary { | ||
background-color: $violet-light-90; | ||
border: 2px solid $yellow; | ||
border-radius: 0.5rem; | ||
padding: 20px; | ||
margin: 20px 0px 20px 0px; | ||
} | ||
|
||
.req { | ||
background-color: $violet-light-90; | ||
min-height: min-content; | ||
width: 300px; | ||
border-radius: 0.5rem; | ||
gap: 0.5em; | ||
padding: 10px; | ||
font-size: 0.8em; | ||
white-space: pre-wrap; | ||
} |
71 changes: 71 additions & 0 deletions
71
app/frontend/src/Components/GameDetails/Summary/Summary.tsx
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,71 @@ | ||
import { Typography } from "antd"; | ||
import TagRenderer from "../../TagRenderer/TagRenderer"; | ||
import styles from "./Summary.module.scss"; | ||
|
||
function Summary({ game }: { game: any }) { | ||
return ( | ||
<div className={styles.summaryContainer}> | ||
<div className={styles.fieldContainer}> | ||
{game?.genre?.length > 0 && ( | ||
<div className={styles.tagContainer}> | ||
Genre: | ||
<TagRenderer tags={game.genre} /> | ||
</div> | ||
)} | ||
{game?.production && ( | ||
<div className={styles.tagContainer}> | ||
Production: | ||
<TagRenderer tags={[game?.production]} /> | ||
</div> | ||
)} | ||
{game?.playerTypes?.length > 0 && ( | ||
<div className={styles.tagContainer}> | ||
Player Type: | ||
<TagRenderer tags={game?.playerTypes} /> | ||
</div> | ||
)} | ||
{game?.duration && ( | ||
<div className={styles.tagContainer}> | ||
Duration: | ||
<TagRenderer tags={[game?.duration]} /> | ||
</div> | ||
)} | ||
{game?.artStyles?.length > 0 && ( | ||
<div className={styles.tagContainer}> | ||
Art Styles: | ||
<TagRenderer tags={game?.artStyles} /> | ||
</div> | ||
)} | ||
{game?.platforms?.length > 0 && ( | ||
<div className={styles.tagContainer}> | ||
Platforms: | ||
<TagRenderer tags={game?.platforms} /> | ||
</div> | ||
)} | ||
{game.developer && ( | ||
<div className={styles.tagContainer}> | ||
Developer: | ||
<TagRenderer tags={[game?.developer]} /> | ||
</div> | ||
)} | ||
{game?.otherTags?.length > 0 && ( | ||
<div className={styles.tagContainer}> | ||
Other: | ||
<TagRenderer tags={game?.otherTags} /> | ||
</div> | ||
)} | ||
</div> | ||
<div className={styles.summary}> | ||
<Typography>{game?.gameDescription}</Typography> | ||
</div> | ||
{game.minSystemReq && ( | ||
<div className={styles.req}> | ||
<span>Min System Req: </span> | ||
{game.minSystemReq} | ||
</div> | ||
)} | ||
</div> | ||
); | ||
} | ||
|
||
export default Summary; |
Oops, something went wrong.