File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments