Skip to content

Commit

Permalink
fix: 무중단 배포 github action v1.37 #327
Browse files Browse the repository at this point in the history
  • Loading branch information
GIVEN53 committed Oct 24, 2024
1 parent ee62f6d commit c383ba3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/be-cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
app_path: ~/app
old_port: ${{ needs.detect-configure-nginx-faliure.outputs.new_port_a }}
new_port: ${{ needs.detect-configure-nginx-faliure.outputs.old_port_a }}
with_shutdown: true
old_shutdown: true

rollback-nginx-b:
needs: [ detect-configure-nginx-faliure ]
Expand All @@ -114,7 +114,7 @@ jobs:
app_path: ~/app
old_port: ${{ needs.detect-configure-nginx-faliure.outputs.new_port_b }}
new_port: ${{ needs.detect-configure-nginx-faliure.outputs.old_port_b }}
with_shutdown: true
old_shutdown: true

blue-shutdown-a:
needs: [ configure-nginx-a ]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nginx-port-forwarding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
description: 'new port for Nginx port forwarding'
required: true
type: string
with_shutdown:
old_shutdown:
description: 'shutdown before update'
required: false
type: boolean
Expand All @@ -30,8 +30,8 @@ on:
value: ${{ inputs.new_port }}

jobs:
shutdown:
if: ${{ inputs.with_shutdown }}
old_shutdown:
if: ${{ inputs.old_shutdown }}
uses: ./.github/workflows/shutdown.yml
with:
self_hosted_runner: ${{ inputs.self_hosted_runner }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shutdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
runs-on: ${{ inputs.self_hosted_runner }}
steps:
- name: Shutdown server - port ${{ inputs.port }}
run: sudo lsof -t -i:${{ inputs.port }} | xargs sudo kill -9
run: sudo lsof -t -i:${{ inputs.port }} | xargs --no-run-if-empty sudo kill -9

0 comments on commit c383ba3

Please sign in to comment.