fix(ci): use valid BuildKit --check flag for Dockerfile syntax validation
Replaced non-existent `docker build --dry-run` with BuildKit's `--check` flag which validates Dockerfile syntax without building. Fixes #601
This commit is contained in:
3
.github/workflows/update-geolite2.yml
vendored
3
.github/workflows/update-geolite2.yml
vendored
@@ -96,7 +96,8 @@ jobs:
|
||||
set -euo pipefail
|
||||
|
||||
echo "🔍 Verifying Dockerfile syntax..."
|
||||
docker build --dry-run -f Dockerfile . || {
|
||||
# Use BuildKit's --check flag for syntax validation (no actual build)
|
||||
DOCKER_BUILDKIT=1 docker build --check -f Dockerfile . 2>&1 || {
|
||||
echo "❌ Dockerfile syntax validation failed"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user