From a9f25d37e9956b77f294b7d3806de065db857f49 Mon Sep 17 00:00:00 2001 From: Malek Tellissi Date: Fri, 11 Sep 2026 01:55:06 +0200 Subject: [PATCH] Initial commit: SpiceManagementSystem mit Deploy-Pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .gitea/workflows/deploy.yml | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..918fab8 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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