Skip to content

Commit

Permalink
config: 무중단 배포 Github Action 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
splitCoding authored Oct 19, 2023
1 parent dee3849 commit 7fbf92b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/nginx-server-cd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: NginX Server Deploy (CD)
name: Blue-Green Backend Production Deploy (CD)

on:
workflow_dispatch:

jobs:
build:
name: Backend Develop Deploy
deploy:
name: Deploy Backend Production Server
runs-on: shook-nginx-runner

steps:
Expand All @@ -31,3 +31,14 @@ jobs:
- name: Backend Deploy
shell: bash
run: bash /home/ubuntu/blue-green.sh

switch-server:
name: Switch Backend Production Server
runs-on: shook-prod
needs: deploy

steps:
- name: Run switch_server.sh
shell: bash
run: bash /home/ubuntu/blue-green/server_switch.sh

0 comments on commit 7fbf92b

Please sign in to comment.