forked from NoLog.cz/trhlina-calendar
Add '.woodpe'
This commit is contained in:
parent
c7c226c29e
commit
8153f01c14
1 changed files with 27 additions and 0 deletions
27
.woodpe
Normal file
27
.woodpe
Normal 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
|
Loading…
Reference in a new issue