File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -63,37 +63,38 @@ jobs:
6363 - name : 실행중인 컨테이너 확인
6464 run : docker ps
6565
66- - name : PostgreSQL 컨테이너 로그 확인
67- run : docker logs log4u_postgres
68-
6966 - name : 컨테이너 실행 대기
7067 run : |
7168 echo "Waiting for MySQL to be ready..."
7269 for i in {1..10}; do
73- if docker exec log4u_mysql mysqladmin ping -h "127.0.0.1" --silent; then
70+ if docker-compose exec log4u_mysql mysqladmin ping -h "127.0.0.1" --silent; then
7471 echo "MySQL is ready!"
7572 break
7673 fi
7774 sleep 1
7875 done
79- if ! docker exec log4u_mysql mysqladmin ping -h "127.0.0.1" --silent; then
76+ if ! docker-compose exec log4u_mysql mysqladmin ping -h "127.0.0.1" --silent; then
8077 echo "MySQL did not start in time!"
8178 exit 1
8279 fi
83-
80+
8481 echo "Waiting for PostgreSQL to be ready..."
8582 for i in {1..10}; do
86- if docker-compose exec -T postgres pg_isready -U postgres
83+
84+ if docker-compose exec -T postgres pg_isready -d gis_db -U postgres
8785 echo "PostgreSQL is ready!"
8886 break
8987 fi
90- sleep 1
88+ sleep 2
9189 done
92- if ! docker-compose exec -T postgres pg_isready -U postgres
90+ if ! docker-compose exec -T postgres pg_isready -d gis_db - U postgres
9391 echo "PostgreSQL did not start in time!"
92+ docker-compose logs postgres
9493 exit 1
9594 fi
9695
96+
97+
9798 - name : Build and analyze
9899 env :
99100 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments