Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
becooq81 committed Jul 17, 2024
2 parents ec940c5 + 3afe34a commit 30e5e68
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ name: Java CI with Gradle
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

permissions:
contents: read
Expand All @@ -34,28 +36,26 @@ jobs:
# arguments: build
run: ./gradlew clean build --exclude-task test
- name: make directory for transfer
run: mkdir palkia
run: mkdir deploy
- name: Copy Jar
run: cp ./build/libs/*.jar ./palkia/
run: cp ./build/libs/*.jar ./deploy/
- name: copy file via ssh password
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_USER }}
password: ${{ secrets.DEV_PASSWORD }}
key: ${{ secrets.DEV_KEY }}
port: ${{ secrets.SSH_PORT }}
source: "./palkia/*.jar"
target: /home/jimmy/k8s/
source: "./build/libs/*.jar"
target: /home/jimmy/k8s/palkia/
- name: restart server
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEV_HOST }}
username: ${{ secrets.DEV_USER }}
password: ${{ secrets.DEV_PASSWORD }}
key: ${{ secrets.DEV_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
kubectl delete deployment palkia-deployment
kubectl apply -f ./k8s/palkia-deployment.yaml
kubectl apply -f palkia-deployment.yaml
kubectl rollout status deployment/palkia-deployment
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.poolc.api.message.dto;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;

@Getter
Expand All @@ -10,7 +9,7 @@ public class MessageCreateRequest {
private final String conversationId;

@JsonCreator
public MessageCreateRequest(@JsonProperty("content") String content, @JsonProperty("conversationId") String conversationId) {
public MessageCreateRequest(String content, String conversationId) {
this.content = content;
this.conversationId = conversationId;
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/poolc/api/post/dto/PostCreateRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public class PostCreateRequest {
private LocalDate deadline;
@JsonCreator
public PostCreateRequest(BoardType boardType, Boolean anonymous, String title, String body, List<String> fileList,
PostType postType, Boolean isQuestion,
JobType position, String region, String field, LocalDate deadline) {
PostType postType, Boolean isQuestion, JobType position, String region, String field, LocalDate deadline) {
this.boardType = boardType;
this.anonymous = anonymous;
this.title = title;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/org/poolc/api/post/dto/PostUpdateRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public class PostUpdateRequest {
private LocalDate deadline;

@JsonCreator
public PostUpdateRequest(Boolean anonymous, String title, String body, List<String> fileList, List<Comment> commentList, JobType position, String region, String field, LocalDate deadline) {
public PostUpdateRequest(Boolean anonymous, String title, String body, List<String> fileList, List<Comment> commentList, JobType position,
String region, String field, LocalDate deadline) {
this.anonymous = anonymous;
this.title = title;
this.body = body;
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spring:
servlet:
multipart:
max-file-size: 50MB
max-request-size: 55MB
jpa:
hibernate:
ddl-auto: update
Expand All @@ -30,4 +31,4 @@ security:
secret-key: ${PROJECT_NAME_HERE_SECRET_KEY}
expire-length: ${EXPIRE_LENGTH_IN_MILLISECONDS}
file:
file-dir: ${FILE_DIR}
file-dir: ${FILE_DIR}

0 comments on commit 30e5e68

Please sign in to comment.