Compare commits
6
Commits
a39c3090d3
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9e072ad38 | ||
|
|
7b4a2aa1dc | ||
|
|
01bb7d96ad | ||
|
|
26a9b86d3d | ||
|
|
8b7e2602ca | ||
|
|
9dfb945c96 |
@@ -1,4 +1,4 @@
|
||||
name: Gitea Actions Demo
|
||||
name: Dockerfile runner
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on:
|
||||
push:
|
||||
@@ -8,6 +8,8 @@ on:
|
||||
- 'dockerfile'
|
||||
tags-ignore:
|
||||
- '*'
|
||||
workflow_dispatch: # Enables the manual run UI button
|
||||
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
@@ -30,6 +32,10 @@ jobs:
|
||||
username: ${{ secrets.USERNAME_GITEA }}
|
||||
password: ${{ secrets.PASSWORD_GITEA }}
|
||||
|
||||
- name: check docker config
|
||||
run: |
|
||||
cat ~/.docker/config.json
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
# 2026/08/12
|
||||
|
||||
removing nexstcloud ics as we are using a share dcalendar using nextcloud now
|
||||
|
||||
sudo docker build -t nextcloud_ics_sync .
|
||||
|
||||
@@ -18,7 +18,8 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: nextcloud-ics-sync
|
||||
image: gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync:1.0.0
|
||||
image: gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync:latest
|
||||
imagePullPolicy: Always
|
||||
volumeMounts:
|
||||
- name: nextcloud-ics-sync-log
|
||||
mountPath: /var/log/nextcloud-ics-sync-log/
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: manual-nextcloud-ics-sync
|
||||
namespace: nextcloud-ics-sync
|
||||
spec:
|
||||
backoffLimit: 4
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
job-name: manual-nextcloud-ics-sync
|
||||
spec:
|
||||
containers:
|
||||
- image: gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync:1.0.0
|
||||
imagePullPolicy: Always
|
||||
name: nextcloud-ics-sync
|
||||
volumeMounts:
|
||||
- mountPath: /var/log/nextcloud-ics-sync.log
|
||||
name: nextcloud-ics-sync-log
|
||||
dnsConfig:
|
||||
nameservers:
|
||||
- 8.8.8.8
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- hostPath:
|
||||
path: /var/log/nextcloud-ics-sync.log
|
||||
type: File
|
||||
name: nextcloud-ics-sync-log
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
annotations:
|
||||
cronjob.kubernetes.io/instantiate: manual
|
||||
creationTimestamp: "2026-03-02T17:12:54Z"
|
||||
generation: 1
|
||||
labels:
|
||||
batch.kubernetes.io/controller-uid: ae19ce07-ec43-4323-8941-d3bac983c44b
|
||||
batch.kubernetes.io/job-name: manual-nextcloud-ics-sync
|
||||
controller-uid: ae19ce07-ec43-4323-8941-d3bac983c44b
|
||||
job-name: manual-nextcloud-ics-sync
|
||||
name: manual-nextcloud-ics-sync
|
||||
namespace: nextcloud-ics-sync
|
||||
ownerReferences:
|
||||
- apiVersion: batch/v1
|
||||
blockOwnerDeletion: true
|
||||
controller: true
|
||||
kind: CronJob
|
||||
name: nextcloud-ics-sync
|
||||
uid: 77a04697-30ee-4294-87b3-2950ae49ffb9
|
||||
resourceVersion: "224848319"
|
||||
uid: ae19ce07-ec43-4323-8941-d3bac983c44b
|
||||
spec:
|
||||
backoffLimit: 4
|
||||
completionMode: NonIndexed
|
||||
completions: 1
|
||||
parallelism: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
batch.kubernetes.io/controller-uid: ae19ce07-ec43-4323-8941-d3bac983c44b
|
||||
suspend: false
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
batch.kubernetes.io/controller-uid: ae19ce07-ec43-4323-8941-d3bac983c44b
|
||||
batch.kubernetes.io/job-name: manual-nextcloud-ics-sync
|
||||
controller-uid: ae19ce07-ec43-4323-8941-d3bac983c44b
|
||||
job-name: manual-nextcloud-ics-sync
|
||||
spec:
|
||||
containers:
|
||||
- image: gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync:1.0.0
|
||||
imagePullPolicy: Always
|
||||
name: nextcloud-ics-sync
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /var/log/nextcloud-ics-sync-log/
|
||||
name: nextcloud-ics-sync-log
|
||||
dnsConfig:
|
||||
nameservers:
|
||||
- 8.8.8.8
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Never
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: nextcloud-ics-sync-log
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-ics-sync-log
|
||||
ttlSecondsAfterFinished: 100
|
||||
status:
|
||||
completionTime: "2026-03-02T17:13:17Z"
|
||||
conditions:
|
||||
- lastProbeTime: "2026-03-02T17:13:17Z"
|
||||
lastTransitionTime: "2026-03-02T17:13:17Z"
|
||||
status: "True"
|
||||
type: Complete
|
||||
ready: 0
|
||||
startTime: "2026-03-02T17:12:55Z"
|
||||
succeeded: 1
|
||||
uncountedTerminatedPods: {}
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/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"
|
||||
@@ -1,36 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: pagerduty-schedule
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: pagerduty-schedule
|
||||
namespace: pagerduty-schedule
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: pagerduty-schedule
|
||||
image: bash
|
||||
imagePullPolicy: Always
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: scripts
|
||||
- mountPath: /storage
|
||||
name: pagerduty-schedule-storage
|
||||
command:
|
||||
- bash
|
||||
- /config/pagerduty-schedule.sh
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- configMap:
|
||||
defaultMode: 0744
|
||||
name: pagerduty-schedule
|
||||
name: scripts
|
||||
- name: pagerduty-schedule-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: pagerduty-schedule-storage
|
||||
backoffLimit: 4
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: pagerduty-schedule
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: pagerduty-schedule
|
||||
namespace: pagerduty-schedule
|
||||
spec:
|
||||
schedule: "0 0 * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: 4
|
||||
ttlSecondsAfterFinished: 100
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: pagerduty-schedule
|
||||
image: bash
|
||||
command:
|
||||
- bash
|
||||
- /config/pagerduty-schedule.sh
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: scripts
|
||||
- mountPath: /storage
|
||||
name: pagerduty-schedule-storage
|
||||
volumes:
|
||||
- name: scripts
|
||||
configMap:
|
||||
defaultMode: 0744
|
||||
name: pagerduty-schedule
|
||||
- name: pagerduty-schedule-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: pagerduty-schedule-storage
|
||||
restartPolicy: Never
|
||||
@@ -1,18 +0,0 @@
|
||||
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
|
||||
@@ -1,34 +0,0 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: stash-reddit-dowloader
|
||||
namespace: stash
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: stash-reddit-dowloader
|
||||
image: alpine
|
||||
imagePullPolicy: Always
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: scripts
|
||||
- mountPath: /data
|
||||
mountPropagation: None
|
||||
name: data-pvc
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- sleep 3600
|
||||
# - /config/reddit_downloader.sh Countem1a /data
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- configMap:
|
||||
defaultMode: 365
|
||||
name: stash-reddit-dowloader
|
||||
name: scripts
|
||||
- name: data-pvc
|
||||
persistentVolumeClaim:
|
||||
claimName: data-pvc
|
||||
backoffLimit: 4
|
||||
|
||||
Reference in New Issue
Block a user