Add Woodpecker CI configuration and deployment template

This commit is contained in:
kodokcloud99-sketch
2026-02-28 00:21:49 +07:00
parent 1299da803f
commit cc4e343349
2 changed files with 20 additions and 0 deletions

10
.woodpecker.yml Normal file
View File

@@ -0,0 +1,10 @@
pipeline:
deploy:
image: alpine/git
commands:
- cd ${DEPLOY_PATH}
- git config --global --add safe.directory ${DEPLOY_PATH}
- git remote set-url origin https://${GIT_USER}:${GIT_TOKEN}@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} branch ${CI_COMMIT_BRANCH} selesai!"

10
template.md Normal file
View File

@@ -0,0 +1,10 @@
pipeline:
deploy:
image: alpine/git
commands:
- cd ${DEPLOY_PATH}
- git config --global --add safe.directory ${DEPLOY_PATH}
- git remote set-url origin https://${GIT_USER}:${GIT_TOKEN}@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} branch ${CI_COMMIT_BRANCH} selesai!"