fix: package CRM from Monica base image
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 3m39s

This commit is contained in:
Kroonk
2026-05-22 16:38:01 +02:00
parent 66169ba15c
commit 5fa7cf1418
2 changed files with 9 additions and 10 deletions

View File

@@ -58,21 +58,15 @@ jobs:
echo "Top-level files:" echo "Top-level files:"
ls -la ls -la
DOCKERFILE="$(find "$PWD" -path "*/scripts/docker/Dockerfile" -print -quit)" if [ ! -f Dockerfile ]; then
if [ -z "$DOCKERFILE" ]; then echo "Could not find root Dockerfile in workspace."
echo "Could not find scripts/docker/Dockerfile in workspace."
find "$PWD" -maxdepth 3 -type f | sort | head -200
exit 1 exit 1
fi fi
BUILD_CONTEXT="$(dirname "$(dirname "$(dirname "$DOCKERFILE")")")"
echo "Dockerfile: $DOCKERFILE"
echo "Build context: $BUILD_CONTEXT"
docker build \ docker build \
-f "$DOCKERFILE" \ -f Dockerfile \
-t ${{ env.REGISTRY_IMAGE }}:latest \ -t ${{ env.REGISTRY_IMAGE }}:latest \
-t ${{ env.REGISTRY_IMAGE }}:${{ github.sha }} \ -t ${{ env.REGISTRY_IMAGE }}:${{ github.sha }} \
"$BUILD_CONTEXT" .
docker push ${{ env.REGISTRY_IMAGE }}:latest docker push ${{ env.REGISTRY_IMAGE }}:latest
docker push ${{ env.REGISTRY_IMAGE }}:${{ github.sha }} docker push ${{ env.REGISTRY_IMAGE }}:${{ github.sha }}

5
Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM monica:4-apache
LABEL org.opencontainers.image.title="MischCRM" \
org.opencontainers.image.description="MischLabs packaged Monica CRM image for Gitea Registry and Watchtower deployment." \
org.opencontainers.image.source="https://git.mischlabs.de/MrDiderot/CRM"