Initial commit: SpiceManagementSystem mit Deploy-Pipeline
Deploy / deploy (push) Failing after 4m54s
Deploy / deploy (push) Failing after 4m54s
- Laravel 11 + Filament 3 Warenwirtschaft für Gewürze
- Chargen/LOT-Verwaltung mit Herkunfts-Tracking
- Öffentliche LOT-API (/api/lot/{nummer})
- Shopify Inventory Import
- Docker/FrankenPHP/Caddy Setup
- Gitea Actions Deploy-Workflow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
400172cdde
commit
a9f25d37e9
@@ -0,0 +1,57 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: .env generieren
|
||||
run: |
|
||||
cat <<'EOF' > .env
|
||||
APP_NAME=SpiceManagementSystem
|
||||
APP_ENV=production
|
||||
APP_KEY=${{ secrets.APP_KEY }}
|
||||
APP_DEBUG=false
|
||||
APP_URL=${{ vars.APP_URL }}
|
||||
SERVER_NAME=${{ vars.APP_DOMAIN }}
|
||||
CADDY_EMAIL=${{ vars.CADDY_EMAIL }}
|
||||
DB_CONNECTION=mariadb
|
||||
DB_HOST=db
|
||||
DB_PORT=3306
|
||||
DB_DATABASE=${{ vars.DB_DATABASE }}
|
||||
DB_USERNAME=${{ vars.DB_USERNAME }}
|
||||
DB_PASSWORD=${{ secrets.DB_PASSWORD }}
|
||||
DB_ROOT_PASSWORD=${{ secrets.DB_ROOT_PASSWORD }}
|
||||
SESSION_DRIVER=file
|
||||
CACHE_DRIVER=file
|
||||
QUEUE_CONNECTION=sync
|
||||
LOG_CHANNEL=stderr
|
||||
EOF
|
||||
|
||||
- name: Dateien auf VPS kopieren
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
with:
|
||||
host: ${{ vars.VPS_HOST }}
|
||||
username: ${{ vars.VPS_USER }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
||||
source: "."
|
||||
target: "~/app"
|
||||
|
||||
- name: Deployen
|
||||
uses: appleboy/ssh-action@v1.2.0
|
||||
with:
|
||||
host: ${{ vars.VPS_HOST }}
|
||||
username: ${{ vars.VPS_USER }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
|
||||
script: |
|
||||
set -e
|
||||
cd ~/app
|
||||
docker compose up -d --build --remove-orphans
|
||||
Reference in New Issue
Block a user