-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.29 KB
/
dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Blog API Laravel Deploy
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy-main:
name: Deploy lendsqr assessment to main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
- name: Install Render CLI
run: |
curl -O https://render.com/download/render_linux
chmod +x render_linux
sudo mv render_linux /usr/local/bin/render
- name: Create env for App
run: |
cat > .env << EOF
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=${{ secrets.DB_HOST }}
DB_PORT=${{ secrets.DB_PORT }}
DB_DATABASE=${{ secrets.DB_NAME }}
DB_USERNAME=${{ secrets.DB_USER }}
DB_PASSWORD=${{ secrets.DB_PASSWORD }}
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
EOF
- name: Install dependencies on app
run: cd backend && docker compose up