diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index da4c9820..5d06df84 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -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