Files
nextcloud_ics_sync/pagerduty_schedule_sh.configmap.yml
T

19 lines
562 B
YAML

apiVersion: v1
data:
pagerduty-schedule.sh: |
#!/bin/bash
#install required packages
apk add curl wget
destination_folder="/storage"
pagerduty_webcal_url="https://prometheusgroup.pagerduty.com/private/ec39afcfcc8fad708b335db797b2c1f4324f7f7097b3c1b65c3c0cea08388915/feed/PLHRBFV"
today_date=$(date "+%Y-%m-%d")
curl -s -A "$USER_AGENT" -o "$destination_folder/pagerduty_export_$today_date.ics" "$pagerduty_webcal_url"
kind: ConfigMap
metadata:
creationTimestamp: null
name: pagerduty-schedule
namespace: pagerduty-schedule