Compare commits
10
Commits
6fba58b884
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9e072ad38 | ||
|
|
7b4a2aa1dc | ||
|
|
01bb7d96ad | ||
|
|
26a9b86d3d | ||
|
|
8b7e2602ca | ||
|
|
9dfb945c96 | ||
|
|
a39c3090d3 | ||
|
|
86b0157e76 | ||
|
|
d7f2972b34 | ||
|
|
365d98a6f6 |
@@ -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
@@ -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
|
|
||||||
@@ -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
@@ -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
|
||||||
@@ -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
|
|
||||||
|
|||||||
@@ -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: {}
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user