Compare commits

..
8 Commits
Author SHA1 Message Date
pierre.geeraert c9e072ad38 enable manual build
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 10s
2026-08-26 10:42:24 +01:00
pierre.geeraert 7b4a2aa1dc try tha
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5s
2026-08-26 10:40:39 +01:00
pi-ux-ce 01bb7d96ad add before deletion
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 7s
2026-08-12 09:57:26 +01:00
pi-ux-ce 26a9b86d3d renaming dockerfile
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m47s
2026-03-02 17:03:30 +00:00
pi-ux-ce 8b7e2602ca delete stash file
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 22s
2026-03-02 16:59:06 +00:00
pi-ux-ce 9dfb945c96 delete pagerduty files
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
2026-03-02 16:58:38 +00:00
pi-ux-ce a39c3090d3 clean
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
2026-03-02 16:58:10 +00:00
pi-ux-ce 86b0157e76 adding a pvc for visibility 2026-03-02 16:56:37 +00:00
12 changed files with 139 additions and 157 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
name: Gitea Actions Demo name: Dockerfile runner
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: on:
push: push:
@@ -8,6 +8,8 @@ on:
- 'dockerfile' - 'dockerfile'
tags-ignore: tags-ignore:
- '*' - '*'
workflow_dispatch: # Enables the manual run UI button
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
@@ -30,6 +32,10 @@ jobs:
username: ${{ secrets.USERNAME_GITEA }} username: ${{ secrets.USERNAME_GITEA }}
password: ${{ secrets.PASSWORD_GITEA }} password: ${{ secrets.PASSWORD_GITEA }}
- name: check docker config
run: |
cat ~/.docker/config.json
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
-13
View File
@@ -1,13 +0,0 @@
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
#RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf
#CMD [ "python", "./nextcloud_ics_sync.py",">>","/var/log/nextcloud-ics-sync.log"]
#CMD [ "sleep","3600" ]
CMD echo "==================================================================================" >> /var/log/nextcloud-ics-sync.log 2>&1 ; echo $(date) >> /var/log/nextcloud-ics-sync.log 2>&1 ; python ./nextcloud_ics_sync.py >> /var/log/nextcloud-ics-sync.log 2>&1 ; echo "==================================================================================" >> /var/log/nextcloud-ics-sync.log 2>&1
+4
View File
@@ -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 . sudo docker build -t nextcloud_ics_sync .
+13
View File
@@ -0,0 +1,13 @@
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
#RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf
#CMD [ "python", "./nextcloud_ics_sync.py",">>","/var/log/nextcloud-ics-sync-log/nextcloud-ics-sync.log"]
#CMD [ "sleep","3600" ]
CMD echo "==================================================================================" >> /var/log/nextcloud-ics-sync-log/nextcloud-ics-sync.log 2>&1 ; echo $(date) >> /var/log/nextcloud-ics-sync-log/nextcloud-ics-sync.log 2>&1 ; python ./nextcloud_ics_sync.py >> /var/log/nextcloud-ics-sync-log/nextcloud-ics-sync.log 2>&1 ; echo "==================================================================================" >> /var/log/nextcloud-ics-sync-log/nextcloud-ics-sync.log 2>&1
+10 -5
View File
@@ -12,21 +12,26 @@ spec:
schedule: "31 * * * *" schedule: "31 * * * *"
jobTemplate: jobTemplate:
spec: spec:
backoffLimit: 4
ttlSecondsAfterFinished: 100 ttlSecondsAfterFinished: 100
template: template:
spec: spec:
containers: containers:
- name: nextcloud-ics-sync - 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: volumeMounts:
- name: nextcloud-ics-sync-log - name: nextcloud-ics-sync-log
mountPath: /var/log/nextcloud-ics-sync.log mountPath: /var/log/nextcloud-ics-sync-log/
restartPolicy: Never restartPolicy: Never
dnsConfig: dnsConfig:
nameservers: nameservers:
- 8.8.8.8 - 8.8.8.8
volumes: volumes:
# - name: nextcloud-ics-sync-log
# hostPath:
# path: /var/log/nextcloud-ics-sync.log
# type: File
- name: nextcloud-ics-sync-log - name: nextcloud-ics-sync-log
hostPath: persistentVolumeClaim:
path: /var/log/nextcloud-ics-sync.log claimName: nextcloud-ics-sync-log
type: File
+103
View File
@@ -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: {}
-10
View File
@@ -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"
-36
View File
@@ -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
-38
View File
@@ -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
-18
View File
@@ -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
+2 -2
View File
@@ -1,8 +1,8 @@
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: pagerduty-schedule-storage name: nextcloud-ics-sync-log
namespace: pagerduty-schedule namespace: nextcloud-ics-sync
spec: spec:
storageClassName: nfs-storage-intelligent storageClassName: nfs-storage-intelligent
accessModes: accessModes:
-34
View File
@@ -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