2022-01-20 17:26:40 +00:00
|
|
|
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:
|
2022-01-21 18:11:33 +00:00
|
|
|
- INSTALL_OUTPUT=$(pip install requests) | true
|
2022-01-21 18:21:47 +00:00
|
|
|
- >
|
|
|
|
if [[ ${PIPESTATUS[0]} > 0 ]]; then
|
|
|
|
echo "$INSTALL_OUTPUT"
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-01-20 17:26:40 +00:00
|
|
|
- python bot.py
|