Skip to content

Commit

Permalink
ci: update docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daeun084 authored Aug 31, 2024
1 parent 5478211 commit 61227e0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y openjdk-17-jdk

- name: Update application.yml with secrets
run: |
sed -i 's|${DB_URL}|'"${{ secrets.DB_URL }}"'|g' ./src/main/resources/application.yml
sed -i 's|${DB_HOST}|'"${{ secrets.DB_HOST }}"'|g' ./src/main/resources/application.yml
sed -i 's|${DB_PASSWORD}|'"${{ secrets.DB_PASSWORD }}"'|g' ./src/main/resources/application.yml
uses: microsoft/variable-substitution@v1
with:
files: src/main/resources/application.yml
env:
spring.datasource.url: ${{ secrets.DB_URL }}
spring.datasource.username: ${{ secrets.DB_HOST }}
spring.datasource.password: ${{ secrets.DB_PASSWORD }}

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down

0 comments on commit 61227e0

Please sign in to comment.