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 제외)
|
# 4.5. 레거시 컨테이너 청소 (포트 충돌 방지, Nginx 제외)
|
||||||
echo "Finding and killing legacy containers holding our ports..."
|
echo "Finding and killing legacy containers holding our ports..."
|
||||||
for port in 8281 8282 8283 8284 8285; do
|
for port in 8281 8282 8283 8284 8285; do
|
||||||
cid=$(docker ps -q --filter "publish=$port" --filter "name!=nginx")
|
cids=$(docker ps -q --filter "publish=$port")
|
||||||
if [ ! -z "$cid" ]; then
|
for cid in $cids; do
|
||||||
echo "Force killing legacy container $cid using port $port"
|
cname=$(docker inspect --format '{{.Name}}' $cid)
|
||||||
|
if [[ "$cname" != *nginx* ]]; then
|
||||||
|
echo "Force killing legacy container $cname ($cid) using port $port"
|
||||||
docker rm -f $cid
|
docker rm -f $cid
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
done
|
||||||
|
|
||||||
# 4.6. Nginx 초기 설정 및 기동
|
# 4.6. Nginx 초기 설정 및 기동
|
||||||
mkdir -p ./nginx/conf.d
|
mkdir -p ./nginx/conf.d
|
||||||
|
|||||||
Reference in New Issue
Block a user