fix: invalid docker filter syntax in deploy.yml
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 13m9s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 13m9s
This commit is contained in:
@@ -66,12 +66,15 @@ jobs:
|
||||
# 4.5. 레거시 컨테이너 청소 (포트 충돌 방지, Nginx 제외)
|
||||
echo "Finding and killing legacy containers holding our ports..."
|
||||
for port in 8281 8282 8283 8284 8285; do
|
||||
cid=$(docker ps -q --filter "publish=$port" --filter "name!=nginx")
|
||||
if [ ! -z "$cid" ]; then
|
||||
echo "Force killing legacy container $cid using port $port"
|
||||
cids=$(docker ps -q --filter "publish=$port")
|
||||
for cid in $cids; do
|
||||
cname=$(docker inspect --format '{{.Name}}' $cid)
|
||||
if [[ "$cname" != *nginx* ]]; then
|
||||
echo "Force killing legacy container $cname ($cid) using port $port"
|
||||
docker rm -f $cid
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
# 4.6. Nginx 초기 설정 및 기동
|
||||
mkdir -p ./nginx/conf.d
|
||||
|
||||
Reference in New Issue
Block a user