Skip to content

Commit

Permalink
fix: yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
HwanGonJang committed Jul 30, 2023
1 parent 52a63b6 commit a95ccfc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Set Yaml
uses: microsoft/variable-substitution@v1
with:
files: ./src/main/resources/application-dev.yml
env:
spring.datasource.url: ${{ secrets.DATASOURCE_URL }}
spring.datasource.username: ${{ secrets.DATASOURCE_USERNAME }}
spring.datasource.password: ${{ secrets.DATASOURCE_PASSWORD }}

- name: Build with Gradle
run: ./gradlew common:bootJar

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM openjdk:17
COPY common/build/libs/common.jar /
ENTRYPOINT ["java", "-Dspring.config.location=file:./config/*/,./config/ -Dspring.profiles.active=dev -Dspring.datasource.url=jdbc:postgresql://daitssu-rds-postgres-db.ccf8zpssvvpc.ap-northeast-2.rds.amazonaws.com:5432/daitssu -Dspring.datasource.username=daitssuadmin -Dspring.datasource.password=Notadmin!", "-jar","/common.jar"]
ENTRYPOINT ["java", "-Dspring.profiles.active=dev", "-jar","/common.jar"]
Empty file.

0 comments on commit a95ccfc

Please sign in to comment.