forked from Pavel_Durov/python_bot
33 lines
660 B
YAML
33 lines
660 B
YAML
---
|
||
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
|
||
- /usr/bin/python3 pipisa_functions/pipisa_time.py
|
||
- name: pull into the folduh
|
||
commands:
|
||
- cd /usr/share/$DRONE_REPO_NAME
|
||
- su -c "git pull" jack
|
||
#- chown -R jack:jack .
|
||
when:
|
||
branch:
|
||
- main
|
||
- name: restart systemd unit
|
||
commands:
|
||
- systemctl restart jack_bot
|
||
when:
|
||
branch:
|
||
- main
|