From 9c3bc533a3fab75bf34975068d232e0be7ab06c1 Mon Sep 17 00:00:00 2001 From: uzivibecode Date: Fri, 27 Feb 2026 17:24:53 +0000 Subject: [PATCH] ci: simplify pipeline, remove auth for public repo --- .woodpecker.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 5b309d8..eacadf6 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,9 +2,9 @@ pipeline: deploy: image: alpine/git commands: - - cd /var/www/projects/test-web - - git config --global --add safe.directory /var/www/projects/test-web - - git remote set-url origin https://uzivibecode:${CI_FORGE_TOKEN}@git.sukabelajar.web.id/uzivibecode/test-web.git || true - - git fetch origin main - - git reset --hard origin/main - - echo "✅ Deploy selesai!" + - cd ${DEPLOY_PATH} + - git config --global --add safe.directory ${DEPLOY_PATH} + - git remote set-url origin https://git.sukabelajar.web.id/${CI_REPO}.git || true + - git fetch origin ${CI_COMMIT_BRANCH} + - git reset --hard origin/${CI_COMMIT_BRANCH} + - echo "✅ Deploy ${CI_REPO_NAME} selesai!"