From 8153f01c141dd4e32b461a7a8dbd7dec5b6c7d9c Mon Sep 17 00:00:00 2001 From: mdivecky Date: Mon, 29 May 2023 19:31:13 +0200 Subject: [PATCH] Add '.woodpe' --- .woodpe | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .woodpe diff --git a/.woodpe b/.woodpe new file mode 100644 index 0000000..b5b61b3 --- /dev/null +++ b/.woodpe @@ -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 \ No newline at end of file