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"