Skip to content

Commit 6e77036

Browse files
committed
chore: AWS S3 버킷 디렉토리 변경
1 parent 921af6e commit 6e77036

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.github/workflows/cicd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
run: aws deploy push
3737
--application-name LikeKNU-Job
3838
--ignore-hidden-files
39-
--s3-location s3://like-knu-job-bucket/job-archive/$GITHUB_SHA.zip
39+
--s3-location s3://like-knu-job-bucket/archive/$GITHUB_SHA.zip
4040
--source .
4141

4242
- name: Deploy EC2
4343
run: aws deploy create-deployment
4444
--application-name LikeKNU-Job
4545
--deployment-config-name CodeDeployDefault.AllAtOnce
4646
--deployment-group-name LikeKNU-Job-Deployment-group
47-
--s3-location bucket=like-knu-job-bucket,key=job-archive/$GITHUB_SHA.zip,bundleType=zip
47+
--s3-location bucket=like-knu-job-bucket,key=archive/$GITHUB_SHA.zip,bundleType=zip

appspec.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ os: linux
33

44
files:
55
- source: /
6-
destination: /home/ubuntu/job-deploy
6+
destination: /home/ubuntu/deploy
77
overwrite: yes
88

99
permissions:

scripts/start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
ROOT_PATH="/home/ubuntu/job-deploy"
3+
ROOT_PATH="/home/ubuntu/deploy"
44
JAR="$ROOT_PATH/job-application.jar"
55

66
APP_LOG="$ROOT_PATH/job-application.log"

scripts/stop.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
ROOT_PATH="/home/ubuntu/job-deploy"
3+
ROOT_PATH="/home/ubuntu/deploy"
44
JAR="$ROOT_PATH/job-application.jar"
55
STOP_LOG="$ROOT_PATH/stop.log"
66
SERVICE_PID=$(pgrep -f $JAR)

src/main/java/ac/knu/likeknujobserver/announcement/repository/AnnouncementRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import java.util.List;
88

9-
public interface AnnouncementRepository extends JpaRepository<Announcement, Long> {
9+
public interface AnnouncementRepository extends JpaRepository<Announcement, String> {
1010

1111
List<Announcement> findTop30ByCategoryOrderByCollectedAtDesc(Category category);
1212

0 commit comments

Comments
 (0)