Skip to content

Commit

Permalink
ci/cd: 테스트 하기 위해 사용한 옵션, 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Curry4182 committed Mar 20, 2024
1 parent c0df467 commit 82f213c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ jobs:
- name: docker pull
run: sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/lime-image

- name: Print if Environment is Blue
run: |
echo "IS_BLUE_ENV is ${{ needs.set-variable.outputs.is_blue_env }}"
shell: bash

- name: Run Docker Container
run: |
PORT=${{ needs.set-variable.outputs.is_blue_env == 'true' && secrets.GREEN_PORT || secrets.BLUE_PORT }}
Expand Down Expand Up @@ -179,7 +174,7 @@ jobs:
echo "Testing application response from /actuator on port $PORT..."
for i in {1..24}; do # 최대 1분(120초) 동안 5초 간격으로 반복
echo "Attempt1 $i..."
response=$(curl -v http://localhost:$PORT/actuator || true)
response=$(curl -s http://localhost:$PORT/actuator || true)
echo "Attempt2 $i..."
if [[ -z "$response" ]]; then
echo "No response yet. Waiting for 5 seconds..."
Expand Down

0 comments on commit 82f213c

Please sign in to comment.