cicd 11
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1m17s

This commit is contained in:
Gal Podlipnik 2025-06-12 16:55:06 +02:00
parent 2d8ea729de
commit 541065bb2c

View File

@ -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