Skip to content

Commit

Permalink
feat: blue green 무중단 배포 스크립트
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachneee committed Oct 15, 2024
1 parent 73cbe71 commit e05fb05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/backend-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ jobs:
# Create or update the default.conf file with the new configuration
echo "Creating or updating default.conf..."
cat > ./nginx-conf/default.conf <<EOF server { listen 80; location / { proxy_pass http://127.0.0.1:${{ steps.check-port.outputs.next_port }}; }} EOF
cat > ./nginx-conf/default.conf <<EOF
server { listen 80; location / { proxy_pass http://127.0.0.1:${{ steps.check-port.outputs.next_port }}; }}
EOF
# Test Nginx configuration inside a temporary container
echo "Testing Nginx configuration..."
Expand All @@ -163,7 +165,9 @@ jobs:

# Create the default.conf file with the initial configuration
echo "Creating default.conf..."
cat > ./nginx-conf/default.conf <<EOF server { listen 80; location / { proxy_pass http://127.0.0.1:${{ steps.check-port.outputs.next_port }}; }} EOF
cat > ./nginx-conf/default.conf <<EOF
server { listen 80; location / { proxy_pass http://127.0.0.1:${{ steps.check-port.outputs.next_port }}; }}
EOF

# Test Nginx configuration inside a temporary container
echo "Testing Nginx configuration..."
Expand Down

0 comments on commit e05fb05

Please sign in to comment.