Skip to content

Commit d4a5961

Browse files
committed
feat: deploy 수정
1 parent b62c083 commit d4a5961

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
3232
# 3. application.properties 설정
3333
echo "${{ secrets.APPLICATION_DB_PROPERTIES }}" > ./src/main/resources/application-db.properties
34-
echo "${{ secrets.APPLICATION_OAUTH_PROPERTIES }}" > ./src/main/resources/application-oauth.properties
34+
echo "${{ secrets.APPLICATION_JWT_PROPERTIES }}" > ./src/main/resources/application-jwt.properties
35+
echo "${{ secrets.APPLICATION_KAFKA_PROPERTIES }}" > ./src/main/resources/application-kafka.properties
3536
3637
# 4. 빌드 권한 확보
3738
chmod +x ./gradlew
@@ -40,9 +41,7 @@ jobs:
4041
./gradlew clean build
4142
4243
# 6. 기존 컨테이너 중지 및 삭제
43-
docker stop be-server || true
44-
docker rm be-server || true
44+
docker compose down -v || true
4545
4646
# 7. 도커 이미지 생성 및 실행
47-
docker build -t be-server .
48-
docker run -d --name be-server -p 8080:8080 be-server
47+
docker compose up -d --build

0 commit comments

Comments
 (0)