python_bot/.drone.yml

32 lines
593 B
YAML
Raw Normal View History

2022-10-18 19:50:50 +10:00
---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
2022-10-29 14:36:56 +10:00
#clone:
2022-10-18 19:50:50 +10:00
# убрано так как сейчас не тестим ничего предварительно а сразу тянем в директорию
2022-10-29 14:36:56 +10:00
#disable: true
2022-10-18 19:50:50 +10:00
steps:
2022-10-29 14:36:56 +10:00
- name: test it first
commands:
2022-10-29 14:37:11 +10:00
- /usr/bin/python3 -m py_compile bot.py
2022-10-18 19:50:50 +10:00
- name: pull into the folduh
commands:
- cd /usr/share/$DRONE_REPO_NAME
- git pull
2022-11-11 21:06:28 +10:00
- chown -R jack:jack .
2023-06-19 22:57:59 +10:00
when:
branch:
- main
2022-10-18 19:50:50 +10:00
- name: restart systemd unit
2022-10-18 19:57:02 +10:00
commands:
2022-10-18 19:57:54 +10:00
- systemctl restart jack_bot
2023-06-19 22:57:59 +10:00
when:
branch:
- main