fix: sanitize container name in test script
Docker Build and Push / lint (pull_request) Successful in 54s
Docker Build and Push / build (pull_request) Successful in 1m27s
Docker Build and Push / test (pull_request) Failing after 1m37s
Docker Build and Push / push (pull_request) Has been skipped

Replace : and / with - to comply with Docker container naming rules.
The colon in image:tag format is invalid in container names.
This commit is contained in:
2026-06-08 16:33:31 +00:00
parent e858cb9646
commit 97ccaee674
+1 -1
View File
@@ -2,7 +2,7 @@
set -euo pipefail
IMAGE="${1:?Usage: test.sh <image>}"
CONTAINER_NAME="test-$(basename "$IMAGE")-$$"
CONTAINER_NAME="test-$(echo "$IMAGE" | tr ':/' '-')-$$"
PASSED=0
FAILED=0
TOTAL=0