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:"
ls -la
DOCKERFILE="$(find "$PWD" -path "*/scripts/docker/Dockerfile" -print -quit)"
if [ -z "$DOCKERFILE" ]; then
echo "Could not find scripts/docker/Dockerfile in workspace."
find "$PWD" -maxdepth 3 -type f | sort | head -200
if [ ! -f Dockerfile ]; then
echo "Could not find root Dockerfile in workspace."
exit 1
fi
BUILD_CONTEXT="$(dirname "$(dirname "$(dirname "$DOCKERFILE")")")"
echo "Dockerfile: $DOCKERFILE"
echo "Build context: $BUILD_CONTEXT"
docker build \
-f "$DOCKERFILE" \
-f Dockerfile \
-t ${{ env.REGISTRY_IMAGE }}:latest \
-t ${{ env.REGISTRY_IMAGE }}:${{ github.sha }} \
"$BUILD_CONTEXT"
.
docker push ${{ env.REGISTRY_IMAGE }}:latest
docker push ${{ env.REGISTRY_IMAGE }}:${{ github.sha }}