From b42635ff45006e90defdf19e591da960c6be7b5b Mon Sep 17 00:00:00 2001 From: Ching L Date: Fri, 5 Sep 2025 18:29:09 +0800 Subject: [PATCH] Add Drone CI configuration for automated deployment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Configure SSH deployment to /root/develop/dota2-match-calendar - Use git pull --rebase --autostash for deployment - Add Discord notifications for build status 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .drone.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a8f9c49 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,33 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: deploy + image: appleboy/drone-ssh + settings: + host: + - 206.237.26.184 + username: root + key: + from_secret: ssh_key + passphrase: + from_secret: ssh_passphrase + port: 33740 + command_timeout: 2m + script: + - echo "Deploying dota2-match-calendar" + - cd /root/develop/dota2-match-calendar + - echo "Pulling latest changes" + - git pull --rebase --autostash + - echo "Deployment completed" + + - name: discord notification + image: appleboy/drone-discord + settings: + webhook_id: + from_secret: discord_webhook_id + webhook_token: + from_secret: discord_webhook_token + when: + status: [success, failure] \ No newline at end of file