From 476bb5417c23e03115312b6766820b6d819e1650 Mon Sep 17 00:00:00 2001 From: RHPZAdmin Date: Tue, 9 Jun 2026 09:47:36 +0000 Subject: [PATCH] Supprimer .gitea/workflows/deploy-staging.yml --- .gitea/workflows/deploy-staging.yml | 47 ----------------------------- 1 file changed, 47 deletions(-) delete mode 100644 .gitea/workflows/deploy-staging.yml diff --git a/.gitea/workflows/deploy-staging.yml b/.gitea/workflows/deploy-staging.yml deleted file mode 100644 index 1fda8af..0000000 --- a/.gitea/workflows/deploy-staging.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Deploy Laravel Staging - -on: - push: - branches: [staging] - -jobs: - deploy: - runs-on: self-hosted - - steps: - - name: Configure Git credentials - run: | - git config --global credential.helper store - echo "https://staging-runner:${{ env.GITEA_TOKEN }}@code.romhackplaza.org" \ - > /root/.git-credentials - - - name: Mark Git Folder as safe - run: git config --global --add safe.directory /deploy/laravel - - - name: Code pull - run: | - git -C /deploy/laravel fetch origin staging - git -C /deploy/laravel reset --hard origin/staging - - - name: Composer Dependencies - run: | - docker exec staging_rhpz_web composer install \ - --no-dev \ - --optimize-autoloader \ - --working-dir=/sites/laravel - - - name: JS Dependencies - run: cd /deploy/laravel && npm ci - - - name: Build JS/CSS - run: cd /deploy/laravel && npm run build - - - name: Migrations - run: | - docker exec staging_rhpz_web \ - php /sites/laravel/artisan migrate --force - - - name: Opti Laravel - run: | - docker exec staging_rhpz_web \ - php /sites/laravel/artisan optimize