fix: exclude crash dumps from Docker context

This commit is contained in:
SimpleTest 2026-07-20 21:20:51 +03:00
parent 0bac8bdbca
commit b8e122056e
2 changed files with 6 additions and 0 deletions

View File

@ -37,6 +37,8 @@
# Generated on crash by the VM # Generated on crash by the VM
erl_crash.dump erl_crash.dump
core
core.*
# Static artifacts - These should be fetched and built inside the Docker image # Static artifacts - These should be fetched and built inside the Docker image
# https://phoenix.hexdocs.pm/Mix.Tasks.Phx.Gen.Release.html#module-docker # https://phoenix.hexdocs.pm/Mix.Tasks.Phx.Gen.Release.html#module-docker

View File

@ -74,6 +74,10 @@ docker run --rm \
--workdir /repo \ --workdir /repo \
"$ACTIONLINT_IMAGE" "$ACTIONLINT_IMAGE"
echo "Checking crash dumps are excluded from the Docker build context"
grep -Fx 'core' .dockerignore >/dev/null
grep -Fx 'core.*' .dockerignore >/dev/null
echo "Rendering every Docker Compose profile" echo "Rendering every Docker Compose profile"
docker compose --env-file .env.example -f compose.yaml config --quiet docker compose --env-file .env.example -f compose.yaml config --quiet
docker compose --env-file .env.example -f compose.yaml config --format json | docker compose --env-file .env.example -f compose.yaml config --format json |