Skip to content

Commit

Permalink
Merge branch 'main' into session
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh-Srivastav123 authored Feb 2, 2024
2 parents b15dbd8 + 1cead05 commit 4e2db02
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Ci/ Cd Quizmate

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ['self-hosted', 'Linux', 'X64' ]

steps:
- uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'

- name: stop old container
run: sudo docker container stop quizmate-container || true
- name: Delete old container
run: sudo docker container rm quizmate-container|| true
- name: Delete old image
run: sudo docker image rm quizmate || true


- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Build the Docker image
run: sudo docker build -t quizmate .
- name: Run docker image
run: sudo docker run -d -p 8080:8080 --name quizmate-container quizmate
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ spring.mail.port=587
spring.mail.username=[email protected]
spring.mail.password=dyxwysgcrtlszoys
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.enable=true
5 changes: 4 additions & 1 deletion src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ <h1>Welcome to My Portfolio</h1>
<h2>Welcome to Quiz App Backend</h2>
<p>Hello! I'm [Harsh Raj Srivastav], for accessing API please refer to documentation.</p>
<ol>
<li><a href="http://52.66.242.197/swagger-ui/index.html">Swagger Docs</a></li>


<li><a href="http://52.66.242.197:8080/swagger-ui/index.html">Swagger Docs</a></li>

<li><a href="https://github.com/Harsh-Srivastav123/quizApp_backend">GitHub</a></li>
</ol>
</section>
Expand Down

0 comments on commit 4e2db02

Please sign in to comment.