added project to compose
Some checks failed
Build and Deploy Backend / Run Linters and Tests (push) Successful in 17s
Build and Deploy Backend / Build and Deploy (push) Failing after 1m1s

This commit is contained in:
c-d-p
2025-04-30 23:13:25 +02:00
parent 558243a657
commit dd6637260a

View File

@@ -125,6 +125,7 @@ jobs:
# Define path to compose file WITHIN the checked-out workspace
COMPOSE_FILE="${{ gitea.workspace }}/backend/docker-compose.deploy.yml"
PROJECT_NAME="maia"
echo "--- Start Deploy Locally (using compose file from repo) ---"
echo "Workspace root: ${{ gitea.workspace }}"
@@ -145,7 +146,7 @@ jobs:
# Pull other images defined in compose using the specific file
# Ensures base images like redis/db are up-to-date if specified in compose
echo "Pulling other compose services..."
docker compose -f "${COMPOSE_FILE}" pull redis db
docker compose -p "${PROJECT_NAME}" -f "${COMPOSE_FILE}" pull redis db
echo "Other service pull complete."
# Update the image tag IN THE CHECKED-OUT COMPOSE FILE
@@ -158,7 +159,7 @@ jobs:
# Restart the services using the updated compose file from the workspace
# Docker compose interacts with the HOST daemon via the mounted socket
echo "Bringing compose stack down and up with new image..."
docker compose -f "${COMPOSE_FILE}" up -d --force-recreate --remove-orphans
docker compose -p "${PROJECT_NAME}" -f "${COMPOSE_FILE}" up -d --force-recreate --remove-orphans
echo "Docker compose up command finished."
echo "--- Local deployment complete! ---"