Skip to content

Commit

Permalink
fix: 무중단 배포 github action v1.47 #327
Browse files Browse the repository at this point in the history
  • Loading branch information
GIVEN53 committed Oct 24, 2024
1 parent 3c1b410 commit adf06d8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/be-cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
needs: [ build ]
uses: ./.github/workflows/blue-green.yml
with:
self_hosted_runner: prod-c # todo a
self_hosted_runner: prod-a
artifact_name: ${{ needs.build.outputs.artifact_name }}
jar_name: ${{ needs.build.outputs.jar_name }}
profile: prod
Expand All @@ -30,7 +30,7 @@ jobs:
needs: [ build ]
uses: ./.github/workflows/blue-green.yml
with:
self_hosted_runner: prod-d # todo b
self_hosted_runner: prod-b
artifact_name: ${{ needs.build.outputs.artifact_name }}
jar_name: ${{ needs.build.outputs.jar_name }}
profile: prod
Expand All @@ -42,7 +42,7 @@ jobs:
if: failure() && (needs.deploy-a.result == 'failure' || needs.deploy-b.result == 'failure')
uses: ./.github/workflows/shutdown.yml
with:
self_hosted_runner: prod-c # todo a
self_hosted_runner: prod-a
port: ${{ needs.deploy-a.outputs.green_port }}

rollback-b:
Expand All @@ -51,7 +51,7 @@ jobs:
if: failure() && (needs.deploy-a.result == 'failure' || needs.deploy-b.result == 'failure')
uses: ./.github/workflows/shutdown.yml
with:
self_hosted_runner: prod-d # todo b
self_hosted_runner: prod-b
port: ${{ needs.deploy-b.outputs.green_port }}

deploy-failure-notification:
Expand All @@ -67,7 +67,7 @@ jobs:
needs: [ deploy-a, deploy-b ]
uses: ./.github/workflows/nginx-port-forwarding.yml
with:
self_hosted_runner: prod-c # todo a
self_hosted_runner: prod-a
app_path: ~/app
old_port: ${{ needs.deploy-a.outputs.blue_port }}
new_port: ${{ needs.deploy-a.outputs.green_port }}
Expand All @@ -76,7 +76,7 @@ jobs:
needs: [ deploy-a, deploy-b ]
uses: ./.github/workflows/nginx-port-forwarding.yml
with:
self_hosted_runner: prod-d # todo b
self_hosted_runner: prod-b
app_path: ~/app
old_port: ${{ needs.deploy-b.outputs.blue_port }}
new_port: ${{ needs.deploy-b.outputs.green_port }}
Expand All @@ -87,7 +87,7 @@ jobs:
if: failure() && (needs.configure-nginx-a.result == 'failure' || needs.configure-nginx-b.result == 'failure')
uses: ./.github/workflows/nginx-port-forwarding.yml
with:
self_hosted_runner: prod-c # todo a
self_hosted_runner: prod-a
app_path: ~/app
old_port: ${{ needs.configure-nginx-a.outputs.new_port }}
new_port: ${{ needs.configure-nginx-a.outputs.old_port }}
Expand All @@ -99,7 +99,7 @@ jobs:
if: failure() && (needs.configure-nginx-a.result == 'failure' || needs.configure-nginx-b.result == 'failure')
uses: ./.github/workflows/nginx-port-forwarding.yml
with:
self_hosted_runner: prod-d # todo b
self_hosted_runner: prod-b
app_path: ~/app
old_port: ${{ needs.configure-nginx-b.outputs.new_port }}
new_port: ${{ needs.configure-nginx-b.outputs.old_port }}
Expand All @@ -118,12 +118,12 @@ jobs:
needs: [ configure-nginx-a, configure-nginx-b ]
uses: ./.github/workflows/shutdown.yml
with:
self_hosted_runner: prod-c # todo a
self_hosted_runner: prod-a
port: ${{ needs.configure-nginx-a.outputs.old_port }}

blue-shutdown-b:
needs: [ configure-nginx-a, configure-nginx-b ]
uses: ./.github/workflows/shutdown.yml
with:
self_hosted_runner: prod-d # todo b
self_hosted_runner: prod-b
port: ${{ needs.configure-nginx-b.outputs.old_port }}

0 comments on commit adf06d8

Please sign in to comment.