Skip to content

백엔드 무중단 배포 #18

백엔드 무중단 배포

백엔드 무중단 배포 #18

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