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
|
2023-07-16 01:51:52 +10:00
|
|
|
|
- /usr/bin/python3 pipisa_functions/pipisa_time.py
|
2022-10-18 19:50:50 +10:00
|
|
|
|
- name: pull into the folduh
|
|
|
|
|
commands:
|
|
|
|
|
- cd /usr/share/$DRONE_REPO_NAME
|
2023-07-16 14:45:35 +10:00
|
|
|
|
- su -c "git pull" jack
|
2023-07-16 14:45:12 +10:00
|
|
|
|
#- chown -R jack:jack .
|
2023-06-19 22:57:15 +10:00
|
|
|
|
when:
|
|
|
|
|
branch:
|
2023-06-19 22:57:33 +10:00
|
|
|
|
- main
|
2024-07-03 17:38:45 +10:00
|
|
|
|
environment:
|
|
|
|
|
ARANGO_PASSWORD:
|
|
|
|
|
from_secret: arango-pwd
|
|
|
|
|
ARANGO_USERNAME:
|
|
|
|
|
from_secret: arango-usr
|
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:15 +10:00
|
|
|
|
when:
|
|
|
|
|
branch:
|
2023-06-19 22:57:33 +10:00
|
|
|
|
- main
|