Skip to content

Commit bffbd54

Browse files
authored
Merge pull request #66 from CAUcheckIT/feat/44
feat:docker 배포
2 parents 6d71ce6 + b6d254a commit bffbd54

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/github-actions.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,14 @@ jobs:
3434
restore-keys: |
3535
${{ runner.os }}-gradle-
3636
37-
# 환경별 yml 파일 생성(1) - application.yml
38-
- name: make application.yml
39-
if: |
40-
contains(github.ref, 'dev')
41-
run: |
42-
mkdir -p ./src/main/resources # resources 폴더 생성
43-
cd ./src/main/resources # resources 폴더로 이동
44-
touch ./application.yml # application.yml 생성
45-
echo "${{ secrets.YML }}" > ./application.yml # github actions에서 설정한 값을 application.yml 파일에 쓰기
46-
shell: bash
37+
- name: Set yml file
38+
uses: microsoft/variable-substitution@v1
39+
with:
40+
files: 'src/main/resources/application.yml'
41+
env:
42+
spring.datasource.url: ${{ secrets.MYSQL_URL }}
43+
spring.datasource.username: ${{ secrets.MYSQL_USER }}
44+
spring.datasource.password: ${{ secrets.MYSQL_PW }}
4745

4846
# 환경별 yml 파일 생성(2) - dev
4947
#- name: make application-dev.yml

0 commit comments

Comments
 (0)