From 89f8af809dc7fb689e2daaa6e63a36a4486c39c5 Mon Sep 17 00:00:00 2001 From: uzivibecode Date: Fri, 27 Feb 2026 17:33:24 +0000 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 22f5036..b8e492d 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,6 +1,11 @@ pipeline: deploy: image: alpine/git + secrets: [ DEPLOY_PATH ] commands: - - cd ${DEPLOY_PATH} - - git config --global --add safe.directory ${DEPLOY_PATH} + - 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!" \ No newline at end of file