백엔드 무중단 배포 #21
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: NginX Server Deploy (CD) | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Backend Develop Deploy | |
runs-on: shook-nginx-runner | |
steps: | |
- name: Checkout Source Code | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.SUBMODULE_PAT }} | |
submodules: recursive | |
- name: Grant execute permission to gradlew | |
shell: bash | |
run: chmod +x backend/gradlew | |
- name: Check Java Version | |
shell: bash | |
run: java --version | |
- name: Gradlew bootJar | |
shell: bash | |
run: | | |
cd backend | |
./gradlew bootJar | |
- name: Copy Jar | |
shell: bash | |
run: cp backend/build/libs/shook-0.0.1-SNAPSHOT.jar /home/ubuntu/application-jar | |
- name: Backend Deploy | |
shell: bash | |
run: bash /home/ubuntu/blue-green.sh |