Skip to content

Commit

Permalink
feat: first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PARKJONGGYEONG committed Mar 15, 2024
1 parent 264fe79 commit c848aa5
Show file tree
Hide file tree
Showing 41 changed files with 203 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/maven.yml
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}}
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/sonarlint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
17 changes: 17 additions & 0 deletions .idea/sonarlint/issuestore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
17 changes: 17 additions & 0 deletions .idea/sonarlint/securityhotspotstore/index.pb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions authentication-api.iml
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>
15 changes: 15 additions & 0 deletions src/main/java/com/t3t/authenticationapi/index/IndexController.java
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
Expand Up @@ -9,5 +9,4 @@ class AuthenticationApiApplicationTests {
@Test
void contextLoads() {
}

}
Binary file added target/authentication-api-0.0.1-SNAPSHOT.jar
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
10 changes: 10 additions & 0 deletions target/classes/templates/index.html
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>
3 changes: 3 additions & 0 deletions target/maven-archiver/pom.properties
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
Empty file.
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
Empty file.
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
Binary file not shown.

0 comments on commit c848aa5

Please sign in to comment.