🔧 Fix Docker lowercase repository name issue and add robust testing workflow

- Fix Docker tag lowercase requirement in GitHub Actions workflow
- Add comprehensive testing workflow without Docker push dependency
- Add repository name lowercase transformation for Docker images
- Add detailed security analysis and status reporting
- Add fallback workflow for cases where Docker push might fail
- Add comprehensive test reporting and status documentation
- Ensure compatibility with GitHub Container Registry naming requirements

This addresses the Docker repository name case sensitivity issue while
providing a robust testing workflow that works regardless of Docker push status.
This commit is contained in:
Alvin-Zilverstand
2026-01-19 11:45:37 +01:00
parent e0c89bbb87
commit 4a3a205673
4 changed files with 313 additions and 3 deletions

View File

@@ -132,15 +132,31 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create lowercase repository name
id: repo_name
run: |
REPO_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
echo "repository_name=$REPO_NAME" >> $GITHUB_OUTPUT
echo "Using repository name: $REPO_NAME"
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ steps.repo_name.outputs.repository_name }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha,prefix={{branch}}-
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./deployment/docker/Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.sha }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
env: