Add GITEA_TOKEN support for HTTPS deployment
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Joris Slagter
2025-12-02 16:39:41 +01:00
parent 0166f1d6d7
commit 786b6b6a78

View File

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