forked from encrypt/toot
31 lines
No EOL
720 B
YAML
31 lines
No EOL
720 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: deploy
|
|
image: appleboy/drone-scp
|
|
settings:
|
|
user:
|
|
from_secret: user
|
|
# key:
|
|
# from_secret: ssh_key
|
|
password:
|
|
from_secret: passwd
|
|
host: mastodon.bida.im
|
|
source: ./
|
|
target: ~/MastodonMegafono
|
|
- name: run
|
|
image: appleboy/drone-ssh
|
|
settings:
|
|
user:
|
|
from_secret: user
|
|
password:
|
|
from_secret: passwd
|
|
host: mastodon.bida.im
|
|
script:
|
|
- kill -9 `ps aufx | grep mega | grep bash | awk '{print $2}'`
|
|
- cd ~/MastodonMegafono
|
|
- nohup bash megafono_bot.sh -f megafono.txt &
|
|
- nohup bash megafono_bot.sh -f supportabida.txt &
|
|
|