Skip to content

Commit

Permalink
[chore] yml 파일 생성하도록 dev.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jj0526 authored Dec 26, 2024
1 parent dcd13ec commit f61c3cc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@ jobs:
- name: Push Docker image
run: docker push ${{ secrets.DOCKER_USER_NAME }}/eatmate

# 환경별 yml 파일 생성(1) - application.yml
- name: make application.yml
if: |
contains(github.ref, 'develop')
run: |
mkdir ./src/main/resources # resources 폴더 생성
cd ./src/main/resources # resources 폴더로 이동
touch ./application.yml # application.yml 생성
echo "${{ secrets.YML }}" > ./application.yml # github actions에서 설정한 값을 application.yml 파일에 쓰기
shell: bash

# 환경별 yml 파일 생성(2) - dev
- name: make application-dev.yml
if: contains(github.ref, 'develop')
run: |
cd ./src/main/resources
touch ./application-dev.yml
echo "${{ secrets.YML_DEV }}" > ./application-dev.yml
shell: bash

deploy:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit f61c3cc

Please sign in to comment.