initial commit
This commit is contained in:
17
.gitea/workflows/deploy.yml
Normal file
17
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
if [ ! -f .env ]; then cp .env.example .env; fi
|
||||
source .env
|
||||
docker compose -f docker-compose.prod.yml up -d --build
|
||||
docker exec ${APP_NAME}-prod php artisan migrate --force
|
||||
Reference in New Issue
Block a user