.env shenanigans
Some checks failed
Build and Deploy Backend / Run Linters and Tests (push) Failing after 8s
Build and Deploy Backend / Build and Deploy (push) Has been skipped

This commit is contained in:
c-d-p
2025-05-01 00:06:13 +02:00
parent b8c306721a
commit 5e822da407
5 changed files with 8 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ on:
paths: # Only run if backend code or Docker config changes
- 'backend/**'
- '.gitea/workflows/deploy.yml'
- 'backend/docker-compose.yml'
- 'backend/docker-compose.deploy.yml'
# Allows running of this workflow manually from the Actions tab
workflow_dispatch:
@@ -123,14 +123,10 @@ jobs:
run: |
#!/bin/bash -ex
# Define path to compose file WITHIN the checked-out workspace
COMPOSE_FILE="${{ gitea.workspace }}/backend/docker-compose.deploy.yml"
PROJECT_NAME="maia"
# Create env file for docker compose
cp "${{ gitea.workspace }}/backend/.env.deploy" "${{ gitea.workspace }}/backend/.env"
echo "--- Start Deploy Locally (using compose file from repo) ---"
echo "Workspace root: ${{ gitea.workspace }}"
echo "Using compose file: ${COMPOSE_FILE}"