From cc4e3433497f05b0da4242f774892185220adb6d Mon Sep 17 00:00:00 2001 From: kodokcloud99-sketch Date: Sat, 28 Feb 2026 00:21:49 +0700 Subject: [PATCH] Add Woodpecker CI configuration and deployment template --- .woodpecker.yml | 10 ++++++++++ template.md | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .woodpecker.yml create mode 100644 template.md diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..222e8fc --- /dev/null +++ b/.woodpecker.yml @@ -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!" diff --git a/template.md b/template.md new file mode 100644 index 0000000..222e8fc --- /dev/null +++ b/template.md @@ -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!"