Compare commits

...
10 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
pi-ux-ce d7f2972b34 Merge branch 'main' of https://gitea.tryton.geeraert.eu/pi-ux-ce/nextcloud_ics_sync
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
2026-03-02 13:37:44 +00:00
pi-ux-ce 365d98a6f6 update the calendar URL due to new scheudle 2026-03-02 13:37:23 +00:00
7 changed files with 149 additions and 19 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: {}
+12
View File
@@ -0,0 +1,12 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: nextcloud-ics-sync-log
namespace: nextcloud-ics-sync
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi