diff --git a/.drone.yml b/.drone.yml index c4d90d4..4c7009c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,9 +29,15 @@ steps: key: from_secret: ssh_private_key port: 22 + envs: + - GITEA_TOKEN script: + - export GITEA_TOKEN=$GITEA_TOKEN - /opt/deploy-scripts/deploy-laravel.sh staging main - cd /var/www/laravel/current && php artisan migrate --force + environment: + GITEA_TOKEN: + from_secret: gitea_token # Step 3: Deploy to production (manual trigger only) - name: deploy-production @@ -50,10 +56,16 @@ steps: key: from_secret: ssh_private_key port: 22 + envs: + - GITEA_TOKEN script: + - export GITEA_TOKEN=$GITEA_TOKEN - /opt/deploy-scripts/deploy-laravel.sh production main - cd /var/www/laravel/current && php artisan migrate --force - cd /var/www/laravel/current && php artisan queue:restart + environment: + GITEA_TOKEN: + from_secret: gitea_token # Step 4: Notification - name: notify