python_bot_v2/.drone.yml

25 lines
506 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
- 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