Compare commits
15 Commits
sonar
...
beanstalk-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cc3d447be | ||
|
|
fd34b6de0c | ||
|
|
453b54bbe5 | ||
|
|
7e4008e949 | ||
|
|
4e92398550 | ||
|
|
3a2061e802 | ||
|
|
896d190e8d | ||
|
|
dbdbc3c5d8 | ||
|
|
975255f876 | ||
|
|
96c0a81dd8 | ||
|
|
87d90c5392 | ||
|
|
94198c948a | ||
|
|
c384c5ef4e | ||
|
|
461f0d5575 | ||
|
|
2e14234a89 |
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -1,9 +1,8 @@
|
||||
name: SonarCloud
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- sonar
|
||||
- beanstalk-java8
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-16.04
|
||||
@@ -30,18 +29,3 @@ 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
|
||||
|
||||
@@ -4,5 +4,3 @@ Code for Hands-on Hexagonal Architecture With Spring Boot Tutorial
|
||||
Application's architecture :
|
||||
|
||||

|
||||
|
||||
Full article: [Hands-on Hexagonal Architecture With Spring Boot](https://medium.com/javarevisited/hands-on-hexagonal-architecture-with-spring-boot-ca61f88bed8b)
|
||||
|
||||
@@ -38,9 +38,4 @@ public class BookController {
|
||||
public void deleteBookByID(@PathVariable long id) {
|
||||
bookServicePort.deleteBookById(id);
|
||||
}
|
||||
|
||||
@GetMapping("/health")
|
||||
public String health() {
|
||||
return "HEALTH CHECK OK";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,6 +63,16 @@
|
||||
</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>
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ 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 {
|
||||
@@ -11,9 +10,4 @@ public class LibraryApplication {
|
||||
SpringApplication.run(LibraryApplication.class, args);
|
||||
}
|
||||
|
||||
@GetMapping("/")
|
||||
public String health() {
|
||||
return "HEALTH CHECK OK!";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user