This commit is contained in:
parent
5e0879fe81
commit
3c6cb98ce1
60
.drone.yml
60
.drone.yml
@ -1,31 +1,31 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
#clone:
|
#clone:
|
||||||
# убрано так как сейчас не тестим ничего предварительно а сразу тянем в директорию
|
# убрано так как сейчас не тестим ничего предварительно а сразу тянем в директорию
|
||||||
#disable: true
|
#disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test it first
|
- name: test it first
|
||||||
commands:
|
commands:
|
||||||
- /usr/bin/python3 -m py_compile bot.py
|
- /usr/bin/python3 -m py_compile bot.py
|
||||||
- name: pull into the folduh
|
- name: pull into the folduh
|
||||||
commands:
|
commands:
|
||||||
- cd /usr/share/$DRONE_REPO_NAME
|
- cd /usr/share/$DRONE_REPO_NAME
|
||||||
- git pull
|
- git pull
|
||||||
- chown -R jack:jack .
|
- chown -R jack:jack .
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- BIG_DICK_COCK
|
- BIG_DICK_COCK
|
||||||
- name: restart systemd unit
|
- name: restart systemd unit
|
||||||
commands:
|
commands:
|
||||||
- systemctl restart pipisa_exporter
|
- systemctl restart pipisa_exporter
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- BIG_DICK_COCK
|
- BIG_DICK_COCK
|
Loading…
Reference in New Issue
Block a user