Skip to content

Commit

Permalink
initial setting: add dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
singsangssong committed Jan 8, 2025
1 parent 6d2555f commit 53406e8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ permissions:

# 환경설정
env:
DOCKER_IMAGE: ghcr.io/${{ github.repository_owner }}/luty-server-deploy
DOCKER_IMAGE: ghcr.io/${{ github.repository_owner }}/ruty-server-deploy
VERSION: ${{ github.sha }}
NAME: luty-server
NAME: ruty-server

jobs:
# 빌드 Job
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Set Docker Image Name
run: echo "DOCKER_IMAGE=ghcr.io/$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')/luty-server-deploy" >> $GITHUB_ENV
run: echo "DOCKER_IMAGE=ghcr.io/$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')/ruty-server-deploy" >> $GITHUB_ENV

- name: Verify DOCKER_IMAGE
run: echo ${{ env.DOCKER_IMAGE }}
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
runs-on: [ self-hosted, label-go ] # AWS ./configure에서 사용할 label명
steps:
- name: Set Docker Image Name
run: echo "DOCKER_IMAGE=ghcr.io/$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')/luty-server-deploy" >> $GITHUB_ENV
run: echo "DOCKER_IMAGE=ghcr.io/$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')/ruty-server-deploy" >> $GITHUB_ENV

- name: Verify DOCKER_IMAGE
run: echo ${{ env.DOCKER_IMAGE }}
Expand All @@ -99,5 +99,5 @@ jobs:
sudo docker stop ${{ env.NAME }} || true
sudo docker rm ${{ env.NAME }} || true
sudo docker rmi ${{ env.DOCKER_IMAGE }}:latest || true
sudo docker run -d -p 80:8080 --name luty-server --restart always ${{ env.DOCKER_IMAGE }}:latest
sudo docker run -d -p 80:8080 --name ruty-server --restart always ${{ env.DOCKER_IMAGE }}:latest
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'io.spring.dependency-management' version '1.1.7'
}

group = 'com.luty'
group = 'com.ruty'
version = '0.0.1-SNAPSHOT'

java {
Expand All @@ -19,9 +19,19 @@ repositories {

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'

// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

// jpa
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'


// db(mysql)
implementation 'mysql:mysql-connector-java:8.0.33'


testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'luty-server'
rootProject.name = 'ruty-server'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.luty.lutyserver;
package com.ruty.rutyserver;

import lombok.NoArgsConstructor;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.luty.lutyserver;
package com.ruty.rutyserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class LutyServerApplication {
public class RutyServerApplication {

public static void main(String[] args) {
SpringApplication.run(LutyServerApplication.class, args);
SpringApplication.run(RutyServerApplication.class, args);
}

}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.luty.lutyserver;
package com.ruty.rutyserver;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class LutyServerApplicationTests {
class RutyServerApplicationTests {

@Test
void contextLoads() {
Expand Down

0 comments on commit 53406e8

Please sign in to comment.