.
Some checks failed
Deploy blog-frontend / build-and-deploy (push) Failing after 1m25s

This commit is contained in:
ParkWonYeop
2025-12-27 16:59:44 +09:00
parent 7b7bd7d11e
commit 4ae5bc2ea9

View File

@@ -56,13 +56,21 @@ jobs:
run: | run: |
echo "Building Docker image..." echo "Building Docker image..."
# 파일 존재 여부 재확인 # 파일 존재 여부 재확인 (대소문자 이슈 처리)
if [ ! -f Dockerfile ]; then if [ -f Dockerfile ]; then
DOCKERFILE_NAME="Dockerfile"
elif [ -f DockerFile ]; then
DOCKERFILE_NAME="DockerFile"
else
echo "❌ Dockerfile not found!" echo "❌ Dockerfile not found!"
exit 1 exit 1
fi fi
echo "✅ Found $DOCKERFILE_NAME"
# -f 옵션으로 찾은 파일명을 지정합니다.
docker build \ docker build \
-f $DOCKERFILE_NAME \
--build-arg NEXT_PUBLIC_API_URL=https://blogserver.wypark.me \ --build-arg NEXT_PUBLIC_API_URL=https://blogserver.wypark.me \
-t blog-frontend:latest . -t blog-frontend:latest .