fix: package CRM from Monica base image
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 3m39s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 3m39s
This commit is contained in:
@@ -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 }}
|
||||
|
||||
5
Dockerfile
Normal file
5
Dockerfile
Normal 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"
|
||||
Reference in New Issue
Block a user