Skip to content

Commit

Permalink
mod::application.properties 생성코드 추가, test 코드 제외하고 build
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjh02 authored Dec 2, 2024
1 parent 7325101 commit 373c45e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
# 4. application.properties 생성
- name: Create application.properties
run: |
mkdir -p src/main/resources
echo "spring.application.name=${{ secrets.SPRING_APPLICATION_NAME }}" > src/main/resources/application.properties
echo "spring.datasource.url=${{ secrets.SPRING_DATASOURCE_URL }}" >> src/main/resources/application.properties
echo "spring.datasource.username=${{ secrets.SPRING_DATASOURCE_USERNAME }}" >> src/main/resources/application.properties
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
echo "management.endpoint.health.show-details=always" >> src/main/resources/application.properties
# 5. Gradle 빌드
- name: Build with Gradle
run: ./gradlew build
run: ./gradlew build -x test

# 6. EC2 서버로 Docker Compose 파일과 jar 파일 전송
- name: Deploy to EC2
Expand Down

0 comments on commit 373c45e

Please sign in to comment.