diff --git a/.woodpecker.yml b/.woodpecker.yml index eacadf6..aa7b4f3 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,9 +1,10 @@ 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}