wordlebot/.drone.yml
2022-01-21 10:21:47 -08:00

23 lines
447 B
YAML

kind: pipeline
type: docker
name: solve
trigger:
event: [cron]
cron: [daily-solve]
steps:
- name: run
image: joyzoursky/python-chromedriver:3.9-selenium
environment:
SLACK_HOOK_URL:
from_secret: slack_hook_url
commands:
- INSTALL_OUTPUT=$(pip install requests) | true
- >
if [[ ${PIPESTATUS[0]} > 0 ]]; then
echo "$INSTALL_OUTPUT"
exit 1
fi
- python bot.py