Skip to content

Commit

Permalink
fix: jq 사용 불가 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
flydog98 committed Dec 18, 2023
1 parent 8df41bb commit 215979e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ jobs:
password: ${{ secrets.BACKEND_SSH_PASSWORD }}
port: ${{ secrets.BACKEND_SSH_PORT }}
script: |
RESPONSE=$(curl -s http://${{ secrets.BLUE_GREEN_HOST }}:${{ secrets.BLUE_GREEN_PORT }}/status)
echo "Response: $Response"
CURRENT_STATE=$(echo $RESPONSE | jq -r '.status')
CURRENT_STATE=$(curl -s http://${{ secrets.BLUE_GREEN_HOST }}:${{ secrets.BLUE_GREEN_PORT }}/status)
echo "The current state is $CURRENT_STATE"
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/git-challenge-backend:0.1
if [ $CURRENT_STATE = "blue" ]; then
docker run -d --name backend-green -p 8081:8080 \
Expand Down

0 comments on commit 215979e

Please sign in to comment.