添加部署相关
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-08 05:42:10 +08:00
parent d85723c44c
commit dbaacaa582
7 changed files with 115 additions and 3 deletions

17
deploy/deploy.ansible.yml Normal file
View File

@ -0,0 +1,17 @@
---
- name: 部署最新版文档
hosts: jazzwhom_server
gather_facts: no
vars:
app_path: /opt/mttu-doc
tasks:
- name: 上传文件
ansible.builtin.copy:
src: docker-compose.yml
dest: "{{ app_path }}/docker-compose.yml"
- name: 启动服务
community.docker.docker_compose_v2:
project_src: "{{ app_path }}"
state: present
pull: yes

View File

@ -0,0 +1,4 @@
services:
mttu-doc-web:
image: gitea.service.jazzwhom.top/mttu-developers/docs:latest
restart: unless-stopped

3
deploy/inventory.ini Normal file
View File

@ -0,0 +1,3 @@
[jazzwhom_server]
# Placeholder target only...
deploy_target_host ansible_host=127.0.0.1 ansible_user=placeholder