wp-cal-integration/ci/pipeline.yaml

42 lines
856 B
YAML
Raw Normal View History

---
resources:
2022-10-13 11:47:43 +02:00
- name: every-hour
type: time
source:
2022-10-13 11:47:43 +02:00
interval: 1h
- name: script
type: git
source:
uri: https://gitea.redxef.at/redxef/wp-cal-integration
2023-11-14 16:00:43 +01:00
branch: master
jobs:
- name: update-calendar
plan:
2022-10-13 11:47:43 +02:00
- get: every-hour
trigger: true
- get: script
- task: run-update
config:
platform: linux
image_resource:
type: registry-image
source:
repository: alpine
tag: latest
inputs:
- name: script
path: .
params:
2022-10-13 11:47:43 +02:00
configuration_json: ((configuration))
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
2023-11-14 16:00:43 +01:00
echo "$configuration_json" | ./main.py -l :verbose -c -