Add '.woodpe'

This commit is contained in:
Matěj Divecký 2023-05-29 19:31:13 +02:00
parent c7c226c29e
commit 8153f01c14

27
.woodpe Normal file
View file

@ -0,0 +1,27 @@
pipeline:
build:
image: python:latest
commands:
- pip install -r ./requirements.txt
- mkdir output
- python3 ./trhkalendar.py > /tmp/cal.ics
deploy:
image: alpine
when:
event: push
branch: master
secrets:
- PUBLIC_ICAL_URL
- PRIVATE_ICAL_URL
- BOT_PRIVATE_KEY
commands:
- apk add openssh-client
- mkdir -p $HOME/.ssh
- ssh-keyscan -t rsa intrawiki.nolog.cz >> $HOME/.ssh/known_hosts
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa
- chmod 0600 $HOME/.ssh/id_rsa
- git checkout pages
- mv /tmp/cal.ics .
- git commit -m "calendar update"
- git push