Skip to content

Commit

Permalink
fix: application-prod.properties 덮어쓰기
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepelown committed Dec 20, 2024
1 parent 315ce19 commit c0b3802
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:

- name: Set environment values
run: |
touch ./wabi/src/main/resources/application-prod.properties
echo "SPRING_DATASOURCE_URL=${{ secrets.SPRING_DATASOURCE_URL }}" >> ./application-prod.properties
echo "SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }}" >> ./application-prod.properties
echo "SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }}" >> ./application-prod.properties
echo "JWT_KEY=${{ secrets.JWT_KEY }}" >> ./application-prod.properties
echo "JWT_EXPIRATION_MINUTES=${{ secrets.JWT_EXPIRATION_MINUTES }}" >> ./application-prod.properties
echo "JWT_REFRESH_EXPIRATION_HOURS=${{ secrets.JWT_REFRESH_EXPIRATION_HOURS }}" >> ./application-prod.properties
echo "JWT_ISSUER=${{ secrets.JWT_ISSUER }}" >> ./application-prod.properties
cat <<EOL > ./wabi/src/main/resources/application-prod.properties
SPRING_DATASOURCE_URL=${{ secrets.SPRING_DATASOURCE_URL }}
SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }}
SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }}
JWT_KEY=${{ secrets.JWT_KEY }}
JWT_EXPIRATION_MINUTES=${{ secrets.JWT_EXPIRATION_MINUTES }}
JWT_REFRESH_EXPIRATION_HOURS=${{ secrets.JWT_REFRESH_EXPIRATION_HOURS }}
JWT_ISSUER=${{ secrets.JWT_ISSUER }}
EOL
- name: Build with Gradle
run: |
cd wabi
Expand Down

0 comments on commit c0b3802

Please sign in to comment.