Enhance deployment workflows with additional input parameters and setup scripts
Some checks failed
Deploy Development / deploy (push) Has been cancelled
Some checks failed
Deploy Development / deploy (push) Has been cancelled
This commit is contained in:
@@ -48,17 +48,8 @@ jobs:
|
||||
cp docker-compose.yml \$DEPLOY_DIR/
|
||||
cd \$DEPLOY_DIR
|
||||
|
||||
cat > .env <<'ENVEOF'
|
||||
APP_ENV=production
|
||||
APP_DEBUG=false
|
||||
APP_URL=https://merchbay.com
|
||||
DB_HOST=$PROD_DB_HOST
|
||||
DB_PORT=${PROD_DB_PORT:-3306}
|
||||
DB_DATABASE=$PROD_DB_DATABASE
|
||||
DB_USERNAME=$PROD_DB_USERNAME
|
||||
DB_PASSWORD=$PROD_DB_PASSWORD
|
||||
DOMAIN=merchbay.com
|
||||
ENVEOF
|
||||
# .env file should already exist on server with all secrets
|
||||
# If it doesn't exist, deployment will fail (this is intentional for security)
|
||||
|
||||
docker compose down || true
|
||||
docker image prune -f
|
||||
@@ -79,11 +70,6 @@ jobs:
|
||||
PROD_DEPLOY_SSH_KEY: ${{ secrets.PROD_DEPLOY_SSH_KEY }}
|
||||
PROD_DEPLOY_USER: ${{ secrets.PROD_DEPLOY_USER }}
|
||||
PROD_DEPLOY_HOST: ${{ secrets.PROD_DEPLOY_HOST }}
|
||||
PROD_DB_HOST: ${{ secrets.PROD_DB_HOST }}
|
||||
PROD_DB_PORT: ${{ secrets.PROD_DB_PORT }}
|
||||
PROD_DB_DATABASE: ${{ secrets.PROD_DB_DATABASE }}
|
||||
PROD_DB_USERNAME: ${{ secrets.PROD_DB_USERNAME }}
|
||||
PROD_DB_PASSWORD: ${{ secrets.PROD_DB_PASSWORD }}
|
||||
|
||||
- name: Health Check
|
||||
shell: sh
|
||||
|
||||
Reference in New Issue
Block a user