5
0
Fork 1
forked from encrypt/toot
MastodonMegafono/.drone.yml

31 lines
728 B
YAML
Raw Normal View History

kind: pipeline
2019-12-09 17:04:47 +01:00
type: docker
2019-12-09 17:09:53 +01:00
name: default
steps:
- name: deploy
2019-12-11 17:07:32 +01:00
image: appleboy/drone-scp
2019-12-09 16:47:17 +01:00
settings:
2019-12-11 17:36:23 +01:00
user:
2019-12-11 17:07:32 +01:00
from_secret: user
2019-12-11 18:28:14 +01:00
# key:
# from_secret: ssh_key
password:
from_secret: passwd
2019-12-11 17:36:23 +01:00
host: mastodon.bida.im
2019-12-09 16:47:17 +01:00
source: ./
2019-12-11 17:39:41 +01:00
target: ~/MastodonMegafono
2019-12-12 15:35:25 +01:00
- name: run
image: appleboy/drone-ssh
settings:
user:
from_secret: user
password:
from_secret: passwd
host: mastodon.bida.im
script:
2019-12-12 15:42:14 +01:00
- kill -9 `ps aufx | grep megafono_bot | grep bash | awk '{print $2}'`
2019-12-12 15:35:25 +01:00
- cd ~/MastodonMegafono
- nohup bash megafono_bot.sh -f megafono.txt &
- nohup bash megafono_bot.sh -f supportabida.txt &
2019-12-11 17:39:41 +01:00