11 Commits

Author SHA1 Message Date
Sofiene BEN KHEMIS
774c8542f6 Health 2021-05-16 11:51:58 +02:00
Sofiene BEN KHEMIS
846a1d0af0 Health 2021-05-10 18:49:43 +02:00
Sofiene BEN KHEMIS
f02656b3c2 workflow_dispatch 2021-05-10 18:36:50 +02:00
Sofiene BEN KHEMIS
c204f7e67c Health check 2021-05-10 18:31:47 +02:00
Sofiene BEN KHEMIS
83fbc40d22 update port 2021-05-10 17:56:49 +02:00
Sofiene BEN KHEMIS
cc736e05f3 Add aws_session_token 2021-05-10 17:49:45 +02:00
Sofiene BEN KHEMIS
7da26f1452 beanstalk test 2021-05-10 17:42:06 +02:00
Sofiene BEN KHEMIS
615c48990f Sonar 2021-05-10 14:38:04 +02:00
Sofiene BEN KHEMIS
bbedce169d Update buildspec.yml 2021-05-09 20:35:35 +02:00
Sofiene BEN KHEMIS
312b75fd66 Create buildspec.yml
add codebuild
2021-05-09 20:02:08 +02:00
Sofiene BEN KHEMIS
6d6dea54c7 Update README.md 2021-03-30 15:08:22 +02:00
6 changed files with 31 additions and 12 deletions

View File

@@ -1,8 +1,9 @@
name: SonarCloud
on:
workflow_dispatch:
push:
branches:
- beanstalk-java8
- sonar
jobs:
build:
runs-on: ubuntu-16.04
@@ -29,3 +30,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v13
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_session_token: ${{ secrets.AWS_SESSION_TOKEN }}
application_name: spring-java-11
environment_name: Springjava11-env
version_label: ${{github.SHA}}
region: us-east-1
deployment_package: ms-launcher/target/ms-launcher-1.0-SNAPSHOT.jar

View File

@@ -4,3 +4,5 @@ Code for Hands-on Hexagonal Architecture With Spring Boot Tutorial
Application's architecture :
![](https://cdn-images-1.medium.com/max/800/1*mBp-JAaetosptDisZe1gPg.jpeg)
Full article: [Hands-on Hexagonal Architecture With Spring Boot](https://medium.com/javarevisited/hands-on-hexagonal-architecture-with-spring-boot-ca61f88bed8b)

View File

@@ -38,4 +38,9 @@ public class BookController {
public void deleteBookByID(@PathVariable long id) {
bookServicePort.deleteBookById(id);
}
@GetMapping("/health")
public String health() {
return "HEALTH CHECK OK";
}
}

View File

@@ -63,16 +63,6 @@
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

View File

@@ -2,6 +2,7 @@ package org.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
@SpringBootApplication
public class LibraryApplication {
@@ -10,4 +11,9 @@ public class LibraryApplication {
SpringApplication.run(LibraryApplication.class, args);
}
@GetMapping("/")
public String health() {
return "HEALTH CHECK OK!";
}
}

View File

@@ -21,7 +21,7 @@
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<java.version>8</java.version>
<java.version>11</java.version>
</properties>
</project>