From 541065bb2c1172fbc7a15402f8d5d102a962128a Mon Sep 17 00:00:00 2001 From: Gal Podlipnik Date: Thu, 12 Jun 2025 16:55:06 +0200 Subject: [PATCH] cicd 11 --- .gitea/workflows/deploy.yml | 64 ++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a78134a..21a6268 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -54,40 +54,40 @@ jobs: - name: Create docker-compose.yml run: | cat > docker-compose.yml << 'EOL' - services: - backend: - image: harbor.galpodlipnik.com/chat-app/backend:latest - restart: always - # Instead of env_file, define the environment variables directly - environment: - - NODE_ENV=production - - PORT=3000 - - CORS_ORIGIN=http://localhost:5173 - - DATABASE_URL=${DATABASE_URL} - - JWT_SECRET=${JWT_SECRET} - networks: - - chat-network - healthcheck: - test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"] - interval: 10s - timeout: 5s - retries: 5 + services: + backend: + image: harbor.galpodlipnik.com/chat-app/backend:latest + restart: always + # Instead of env_file, define the environment variables directly + environment: + - NODE_ENV=production + - PORT=3000 + - CORS_ORIGIN=http://localhost:5173 + - DATABASE_URL=${DATABASE_URL} + - JWT_SECRET=${JWT_SECRET} + networks: + - chat-network + healthcheck: + test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"] + interval: 10s + timeout: 5s + retries: 5 - frontend: - image: harbor.galpodlipnik.com/chat-app/frontend:latest - restart: always - ports: - - "5173:80" - depends_on: - backend: - condition: service_healthy - networks: - - chat-network + frontend: + image: harbor.galpodlipnik.com/chat-app/frontend:latest + restart: always + ports: + - "5173:80" + depends_on: + backend: + condition: service_healthy + networks: + - chat-network - networks: - chat-network: - driver: bridge - EOL + networks: + chat-network: + driver: bridge + EOL - name: Deploy with SSH uses: appleboy/ssh-action@master