Skip to content

Commit

Permalink
bug: working 디렉토리 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
PokingTeemo committed Nov 26, 2024
1 parent f9bd920 commit 6a9c3c5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,25 @@ jobs:
# 환경별 application.yml 파일 생성
- name: Create application.yml files
run: |
mkdir -p $WORKING_DIRECTORY/src/main/resources/
echo "${{ secrets.APPLICATION_DEFAULT }}" > $WORKING_DIRECTORY/src/main/resources/application.yml
echo "${{ secrets.APPLICATION_DEV }}" > $WORKING_DIRECTORY/src/main/resources/application-dev.yml
echo "${{ secrets.APPLICATION_LOCAL }}" > $WORKING_DIRECTORY/src/main/resources/application-local.yml
echo "${{ secrets.APPLICATION_PROD }}" > $WORKING_DIRECTORY/src/main/resources/application-prod.yml
mkdir -p mkdir -p backend/src/main/resources/
echo "${{ secrets.APPLICATION_DEFAULT }}" > backend/src/main/resources/application.yml
echo "${{ secrets.APPLICATION_DEV }}" > backend/src/main/resources/application-dev.yml
echo "${{ secrets.APPLICATION_LOCAL }}" > backend/src/main/resources/application-local.yml
echo "${{ secrets.APPLICATION_PROD }}" > backend/src/main/resources/application-prod.yml
# Gradle 실행 권한 설정
- name: Grant execute permission to gradlew
run: chmod +x gradlew
working-directory: $WORKING_DIRECTORY

# Gradle 빌드 및 테스트 실행
# Gradle 빌드
- name: Build and Test with Gradle
run: ./gradlew clean build
working-directory: $WORKING_DIRECTORY
env:
SPRING_DATASOURCE_URL: jdbc:mysql://aimodb.cbimeayem48r.ap-northeast-2.rds.amazonaws.com:3306/aimo
SPRING_DATASOURCE_USERNAME: admin
SPRING_DATASOURCE_PASSWORD: ${{ secrets.DB_PASSWORD }}

# 빌드된 JAR 파일을 EC2_HOST_1로 복사
- name: Copy JAR file to EC2_HOST_1
Expand Down

0 comments on commit 6a9c3c5

Please sign in to comment.