2022-09-28 17:55:27 +02:00
|
|
|
---
|
|
|
|
resources:
|
2022-10-13 11:47:43 +02:00
|
|
|
- name: every-hour
|
2022-09-28 17:55:27 +02:00
|
|
|
type: time
|
|
|
|
source:
|
2022-10-13 11:47:43 +02:00
|
|
|
interval: 1h
|
2022-09-28 17:55:27 +02:00
|
|
|
|
|
|
|
- name: script
|
|
|
|
type: git
|
|
|
|
source:
|
|
|
|
uri: https://gitea.redxef.at/redxef/wp-cal-integration
|
2022-10-13 11:47:43 +02:00
|
|
|
branch: master
|
2022-09-28 17:55:27 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- name: update-calendar
|
|
|
|
plan:
|
2022-10-13 11:47:43 +02:00
|
|
|
- get: every-hour
|
2022-09-28 17:55:27 +02:00
|
|
|
trigger: true
|
|
|
|
- get: script
|
|
|
|
- task: run-update
|
|
|
|
config:
|
|
|
|
platform: linux
|
|
|
|
image_resource:
|
|
|
|
type: registry-image
|
|
|
|
source:
|
|
|
|
repository: alpine
|
2022-11-23 14:55:57 +01:00
|
|
|
tag: latest
|
2022-09-28 17:55:27 +02:00
|
|
|
inputs:
|
|
|
|
- name: script
|
|
|
|
path: .
|
|
|
|
params:
|
2022-10-13 11:47:43 +02:00
|
|
|
configuration_json: ((configuration))
|
2022-09-28 17:55:27 +02:00
|
|
|
run:
|
|
|
|
path: sh
|
|
|
|
args:
|
|
|
|
- -c
|
|
|
|
- |
|
|
|
|
#!/usr/bin/env sh
|
2022-10-13 11:47:43 +02:00
|
|
|
apk --no-cache --update add libcap jq python3 py3-pip
|
|
|
|
python3 -m pip install --requirement requirements.txt
|
|
|
|
echo "$configuration_json" | ./main.py -c -
|