-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Java CI with Maven | ||
on: | ||
push: | ||
branches: [ "master" , "develop"] | ||
pull_request: | ||
branches: [ "master" , " develop"] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
|
||
- name : upload file | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.SSH_IP }} | ||
username: ${{ secrets.SSH_ID }} | ||
key: ${{ secrets.SSH_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
source: "target/*.jar" | ||
target: "~/" | ||
rm: false | ||
|
||
- name: execute shell script | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.SSH_IP }} | ||
username: ${{ secrets.SSH_ID }} | ||
key: ${{ secrets.SSH_KEY }} | ||
port: ${{ secrets.SSH_PORT }} | ||
script_stop: true | ||
script: "./startup.sh" | ||
|
||
- name : Run SonarQube | ||
run : mvn sonar:sonar -Dsonar.projectKey=github-action -Dsonar.host.url=${{secrets.SONAR_HOST}} -Dsonar.login=${{secrets.SONAR_TOKEN}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module version="4"> | ||
<component name="SonarLintModuleSettings"> | ||
<option name="uniqueId" value="09899f23-37bc-42fb-8c42-59b4a86fc2be" /> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.t3t.authenticationapi.index; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
@Controller | ||
public class IndexController { | ||
@GetMapping(value = {"/index.html","/"}) | ||
public String index(){ | ||
return "index"; | ||
} | ||
} | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,4 @@ class AuthenticationApiApplicationTests { | |
@Test | ||
void contextLoads() { | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>welcome page</title> | ||
</head> | ||
<body> | ||
<h1>hello spring12!!</h1> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
artifactId=authentication-api | ||
groupId=com.t3t | ||
version=0.0.1-SNAPSHOT |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
E:\authentication-api\src\main\java\com\t3t\authenticationapi\index\IndexController.java | ||
E:\authentication-api\src\main\java\com\t3t\authenticationapi\AuthenticationApiApplication.java |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
E:\authentication-api\src\test\java\com\t3t\authenticationapi\AuthenticationApiApplicationTests.java | ||
E:\authentication-api\src\test\java\com\t3t\authenticationapi\controller\IndexController.java |