Skip to content

Commit

Permalink
Merge pull request #793 from woowacourse-teams/BE/feature/#781-zero-d…
Browse files Browse the repository at this point in the history
…owntime

[BE] curl 시 로컬 호스트로 변경
  • Loading branch information
reddevilmidzy authored Oct 15, 2024
2 parents 293b15c + 1637e0c commit 8356966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/be_cd-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ jobs:
- name: Determine Active and Inactive Ports (Blue/Green)
id: determine-ports
run: |
ip="api-test.coduo.site"
ip="127.0.0.1"
ports=(8080 8081)
for port in "${ports[@]}"; do
RESPONSE=$(curl -s https://$ip:$port/api/actuator/health)
RESPONSE=$(curl -s http://$ip:$port/api/actuator/health)
IS_ACTIVE=$(echo ${RESPONSE} | grep 'UP' | wc -l)
if [ $IS_ACTIVE -eq 1 -a $port -eq "8080" ]; then
echo "BLUE_PORT=8080" >> $GITHUB_ENV
Expand Down

0 comments on commit 8356966

Please sign in to comment.