fix: lowercase docker image name for uppercase repo

This commit is contained in:
Jarian Cottingham 2026-07-07 19:18:10 +00:00 committed by Jarian
parent d28b4b955c
commit c3cdfe9adb

View File

@ -68,18 +68,20 @@ jobs:
- name: Build Docker image
run: |
IMG_NAME=$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')
if [[ -f Dockerfile ]]; then
docker build -t $GITHUB_REPOSITORY:pr-${GITHUB_RUN_ID} .
echo "Docker build successful: $GITHUB_REPOSITORY:pr-${GITHUB_RUN_ID}"
docker build -t ${IMG_NAME}:pr-${GITHUB_RUN_ID} .
echo "Docker build successful: ${IMG_NAME}:pr-${GITHUB_RUN_ID}"
else
echo "No Dockerfile found, skipping"
fi
- name: Test container startup
run: |
IMG_NAME=$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')
if [[ -f Dockerfile ]]; then
docker run --rm --name pr-test-$GITHUB_RUN_ID \
$GITHUB_REPOSITORY:pr-${GITHUB_RUN_ID} \
${IMG_NAME}:pr-${GITHUB_RUN_ID} \
true || echo "Container startup test skipped"
fi