added project to compose
This commit is contained in:
@@ -125,6 +125,7 @@ jobs:
|
|||||||
|
|
||||||
# Define path to compose file WITHIN the checked-out workspace
|
# Define path to compose file WITHIN the checked-out workspace
|
||||||
COMPOSE_FILE="${{ gitea.workspace }}/backend/docker-compose.deploy.yml"
|
COMPOSE_FILE="${{ gitea.workspace }}/backend/docker-compose.deploy.yml"
|
||||||
|
PROJECT_NAME="maia"
|
||||||
|
|
||||||
echo "--- Start Deploy Locally (using compose file from repo) ---"
|
echo "--- Start Deploy Locally (using compose file from repo) ---"
|
||||||
echo "Workspace root: ${{ gitea.workspace }}"
|
echo "Workspace root: ${{ gitea.workspace }}"
|
||||||
@@ -145,7 +146,7 @@ jobs:
|
|||||||
# Pull other images defined in compose using the specific file
|
# Pull other images defined in compose using the specific file
|
||||||
# Ensures base images like redis/db are up-to-date if specified in compose
|
# Ensures base images like redis/db are up-to-date if specified in compose
|
||||||
echo "Pulling other compose services..."
|
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."
|
echo "Other service pull complete."
|
||||||
|
|
||||||
# Update the image tag IN THE CHECKED-OUT COMPOSE FILE
|
# 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
|
# Restart the services using the updated compose file from the workspace
|
||||||
# Docker compose interacts with the HOST daemon via the mounted socket
|
# Docker compose interacts with the HOST daemon via the mounted socket
|
||||||
echo "Bringing compose stack down and up with new image..."
|
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 "Docker compose up command finished."
|
||||||
echo "--- Local deployment complete! ---"
|
echo "--- Local deployment complete! ---"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user