This commit is contained in:
parent
3941cb4b8f
commit
0756460fbc
@@ -27,4 +27,5 @@ jobs:
|
||||
- name: Deploy
|
||||
env:
|
||||
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
run: php deployer.phar deploy production -vvv
|
||||
|
||||
@@ -3,7 +3,9 @@ namespace Deployer;
|
||||
|
||||
require 'recipe/symfony.php';
|
||||
|
||||
set('repository', 'https://git.homelab.nestor-server.fr/colgora/Mangarr.git');
|
||||
// GITEA_TOKEN injecté depuis le secret Gitea (scope: read:repository)
|
||||
$giteaToken = getenv('GITEA_TOKEN') ?: throw new \RuntimeException('GITEA_TOKEN secret is required');
|
||||
set('repository', "https://{$giteaToken}@git.homelab.nestor-server.fr/colgora/Mangarr.git");
|
||||
set('keep_releases', 3);
|
||||
set('composer_options', '--no-dev --optimize-autoloader --no-interaction --prefer-dist');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user