wp-cal-integration/ci/pipeline.yaml
redxef d08fea10b8
Explicit latest tag in pipeline.
Alpine edge failed with python3 no module pip, after py3-pip
being installed.
2022-11-23 14:55:57 +01:00

41 lines
845 B
YAML

---
resources:
- name: every-hour
type: time
source:
interval: 1h
- name: script
type: git
source:
uri: https://gitea.redxef.at/redxef/wp-cal-integration
branch: master
jobs:
- name: update-calendar
plan:
- 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:
configuration_json: ((configuration))
run:
path: sh
args:
- -c
- |
#!/usr/bin/env sh
apk --no-cache --update add libcap jq python3 py3-pip
python3 -m pip install --requirement requirements.txt
echo "$configuration_json" | ./main.py -c -