Add Drone CI configuration for automated deployment
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
dd5ba77e1e
commit
b42635ff45
33
.drone.yml
Normal file
33
.drone.yml
Normal file
@ -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]
|
||||
Loading…
x
Reference in New Issue
Block a user