fix: git token
Some checks failed
Deploy / deploy (push) Failing after 12s

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2026-03-10 22:08:35 +01:00
parent 3941cb4b8f
commit 0756460fbc
2 changed files with 4 additions and 1 deletions

View File

@@ -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');