pipisa-exporter/.drone.yml

31 lines
621 B
YAML
Raw Normal View History

2023-06-20 21:12:10 +10:00
---
2023-06-20 21:13:56 +10:00
kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
#clone:
# убрано так как сейчас не тестим ничего предварительно а сразу тянем в директорию
#disable: true
steps:
- name: test it first
commands:
2023-06-20 21:14:25 +10:00
- /usr/bin/python3 -m py_compile exporto.py
2023-06-20 21:13:56 +10:00
- name: pull into the folduh
commands:
- cd /usr/share/$DRONE_REPO_NAME
- git pull
- chown -R jack:jack .
when:
branch:
- BIG_DICK_COCK
- name: restart systemd unit
commands:
- systemctl restart pipisa_exporter
when:
branch:
- BIG_DICK_COCK