python_bot/.drone.yml
root 1b09c2caef
All checks were successful
continuous-integration/drone/push Build is passing
fixed
2022-11-11 06:06:28 -05:00

26 lines
531 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
#clone:
# убрано так как сейчас не тестим ничего предварительно а сразу тянем в директорию
#disable: true
steps:
- name: test it first
commands:
- /usr/bin/python3 -m py_compile bot.py
- name: pull into the folduh
commands:
- cd /usr/share/$DRONE_REPO_NAME
- git pull
- chown -R jack:jack .
- name: restart systemd unit
commands:
- systemctl restart jack_bot