[Deploy] v1.1.2 운영서버 배포 #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: prod-CI | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
prod-build-TEST: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: application.yml 작성 | |
run: | | |
cd moonshot-api/src/main/resources | |
echo "${{ secrets.APPLICATION }}" > ./application-prod.yml | |
echo "${{ secrets.DATA }}" > ./data.sql | |
- name: build | |
run: | | |
chmod +x gradlew | |
./gradlew moonshot-api:build -x test | |
shell: bash |