Skip to content

Commit

Permalink
feat: ecs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
HwanGonJang committed Jul 30, 2023
1 parent a95ccfc commit 24a673e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ 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
- name: Copy Secret
env:
spring.datasource.url: ${{ secrets.DATASOURCE_URL }}
spring.datasource.username: ${{ secrets.DATASOURCE_USERNAME }}
spring.datasource.password: ${{ secrets.DATASOURCE_PASSWORD }}
CREATE_SECRET: ${{secrets.DAITSSU_DEV_APPLICATION_YML}}
CREATE_SECRET_DIR: common/src/main/resources
CREATE_SECRET_DIR_FILE_NAME: application-dev.yml
run: echo $CREATE_SECRET > $CREATE_SECRET_DIR/$CREATE_SECRET_DIR_FILE_NAME

- name: Build with Gradle
run: ./gradlew common:bootJar
Expand Down
6 changes: 6 additions & 0 deletions common/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
spring:
datasource:
driver-class-name: org.postgresql.Driver
url: ${DATASOURCE_URL}
username: ${DATASOURCE_USERNAME}
password: ${DATASOURCE_PASSWORD}
2 changes: 0 additions & 2 deletions common/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Common Module application.yml
spring:
datasource:
driver-class-name: org.postgresql.Driver
jpa:
properties:
hibernate:
Expand Down

0 comments on commit 24a673e

Please sign in to comment.