Add .env.example file and update docker-compose configurations for environment variables
Some checks failed
Deploy Development / deploy (push) Failing after 1m40s
Some checks failed
Deploy Development / deploy (push) Failing after 1m40s
This commit is contained in:
@@ -60,6 +60,7 @@ jobs:
|
||||
env:
|
||||
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
|
||||
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
||||
|
||||
run: |
|
||||
ssh -i ~/.ssh/id_ed25519 $DEPLOY_USER@$DEPLOY_HOST << 'EOF'
|
||||
set -e
|
||||
@@ -75,13 +76,20 @@ jobs:
|
||||
|
||||
cd "$DEPLOY_DIR"
|
||||
|
||||
echo "🌐 Ensure Traefik network"
|
||||
echo "🔍 Checking .env file"
|
||||
if [ ! -f .env ]; then
|
||||
echo "❌ .env file not found at $DEPLOY_DIR/.env"
|
||||
echo "Please create it first. See DEPLOYMENT-SETUP.md"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "🌐 Ensure networks"
|
||||
docker network inspect traefik-public >/dev/null 2>&1 || \
|
||||
docker network create traefik-public
|
||||
docker network inspect crew-app-net >/dev/null 2>&1 || \
|
||||
docker network create crew-app-net
|
||||
|
||||
echo "🚀 Starting containers"
|
||||
export DOMAIN=dev-admin.merchbay.app
|
||||
export APP_URL=https://dev-admin.merchbay.app
|
||||
echo "🚀 Starting containers (env vars from .env file)"
|
||||
docker compose up -d
|
||||
|
||||
echo "⏳ Waiting for app container"
|
||||
@@ -106,6 +114,7 @@ jobs:
|
||||
echo "✅ Deployment completed"
|
||||
EOF
|
||||
|
||||
|
||||
# 6️⃣ Health check
|
||||
- name: Health check
|
||||
shell: sh
|
||||
|
||||
Reference in New Issue
Block a user