From 7fb5f35138c4f47c4f21408f8f627a39272d46fd Mon Sep 17 00:00:00 2001 From: marco370 <48531002-marco370@users.noreply.replit.com> Date: Fri, 17 Oct 2025 06:52:30 +0000 Subject: [PATCH] Update repository access to use username and token for Gitea Modify deploy script to use username and token for HTTPS Git access, aligning with Gitea's authentication requirements instead of GitLab's OAuth2. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 42d8028a-fa71-4ec2-938c-e43eedf7df01 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/42d8028a-fa71-4ec2-938c-e43eedf7df01/Z1LDqzu --- deploy-to-gitlab.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 deploy-to-gitlab.sh diff --git a/deploy-to-gitlab.sh b/deploy-to-gitlab.sh old mode 100755 new mode 100644 index d80035e..79a8a72 --- a/deploy-to-gitlab.sh +++ b/deploy-to-gitlab.sh @@ -194,9 +194,9 @@ log_info "Configuro repository GitLab..." # Costruisci URL con autenticazione if [[ "$GITLAB_REPO" == https://* ]]; then - # HTTPS: GitLab richiede "oauth2" come username con Personal Access Token - # Formato: https://oauth2:TOKEN@gitlab.com/username/repo.git - REPO_WITH_AUTH=$(echo "$GITLAB_REPO" | sed "s|https://|https://oauth2:${GITLAB_TOKEN}@|") + # HTTPS: Gitea richiede username:token (token fa da password) + # Formato: https://USERNAME:TOKEN@gitea-url/owner/repo.git + REPO_WITH_AUTH=$(echo "$GITLAB_REPO" | sed "s|https://|https://${GITLAB_USER}:${GITLAB_TOKEN}@|") elif [[ "$GITLAB_REPO" == git@* ]]; then # SSH: usa direttamente REPO_WITH_AUTH="$GITLAB_REPO"