tmtmz9
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-08 06:45:41 +08:00
parent fb07934519
commit 776c485521

View File

@ -40,13 +40,13 @@ steps:
- mkdir -p deploy
- echo "[jazzwhom_server]" > deploy/inventory.ini
- echo "prod_doc_server ansible_host=$${CI_DEPLOY_SERVER} ansible_port=$${CI_DEPLOY_PORT} ansible_user=$${CI_DEPLOY_USER}" >> deploy/inventory.ini
- echo "$${CI_DEPLOY_KEY}" > /tmp/deploy_key
- chmod 600 /tmp/deploy_key
- echo "$${CI_DEPLOY_KEY}" > deploy/deploy_key
- chmod 600 deploy/deploy_key
- name: 部署到服务器
image: alpine/ansible:latest
commands:
# - ansible-galaxy install --force --role-file deploy/requirements.ansible.yml
- ansible-playbook --inventory deploy/inventory.ini --private-key /tmp/deploy_key --ssh-common-args='-o StrictHostKeyChecking=no' deploy/deploy.ansible.yml
- ansible-playbook --inventory deploy/inventory.ini --private-key deploy/deploy_key --ssh-common-args='-o StrictHostKeyChecking=no' deploy/deploy.ansible.yml
- name: 发送构建结果到 ntfy
image: parrazam/drone-ntfy