Compare commits

..
12 Commits
Author SHA1 Message Date
pi-ux-ce 167e3795f5 add caching
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
2025-06-03 11:01:01 +00:00
pi-ux-ce df03cd85f0 update to be sure the permissions are correct
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 23s
2024-11-28 09:30:01 +00:00
pi-ux-ce 6aae17706b update openmediavault with new structure
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 19s
2024-11-25 22:58:10 +00:00
pi-ux-ce 418badf14c add ns and pvc and launch a first try
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 20s
2024-11-18 22:38:26 +00:00
pi-ux-ce a194812377 two versions
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s
2024-11-12 11:56:03 +00:00
pi-ux-ce 99328a29f6 use Infrequent_access instead
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s
2024-11-12 11:06:18 +00:00
pi-ux-ce 7b619b7355 add this to test the django code
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 22s
2024-11-12 10:42:43 +00:00
pi-ux-ce 60a8bd0d00 modify the secret
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 14s
2024-11-04 10:57:28 +00:00
pi-ux-ce be1a4a6588 add all the kubectl apply runners command
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 13s
2024-11-04 10:54:35 +00:00
pi-ux-ce 340faf3f1b fix the pathj 2024-10-30 11:21:52 +00:00
pi-ux-ce 1abefc0e28 separate the runners 2024-10-30 11:19:15 +00:00
pi-ux-ce 7617cc89fb remove this version
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13m56s
2024-10-29 15:02:24 +00:00
10 changed files with 194 additions and 31 deletions
@@ -1,6 +1,13 @@
name: Gitea Actions Demo name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push] on:
push:
branches:
- "*"
paths:
- 'dockerfile'
tags-ignore:
- '*'
jobs: jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
@@ -29,5 +36,8 @@ jobs:
context: "{{defaultContext}}:bitwarden" context: "{{defaultContext}}:bitwarden"
push: true push: true
tags: gitea.tryton.geeraert.eu/pi-ux-ce/bitwarden_cli:latest tags: gitea.tryton.geeraert.eu/pi-ux-ce/bitwarden_cli:latest
cache-from: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/bitwarden_cli:buildcache
cache-to: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/bitwarden_cli:buildcache,mode=max
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."
+41
View File
@@ -0,0 +1,41 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- name: Perform kubectl tasks for Bitwarden
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: apply -f bitwarden
- name: Perform kubectl tasks for Gitea
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: apply -f Gitea
- name: Perform kubectl tasks for Nextcloud
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: apply -f Nextcloud
- name: Perform kubectl tasks for Paperless
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: apply -f Paperless
- run: echo "🍏 This job's status is ${{ job.status }}."
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: backup
+38
View File
@@ -0,0 +1,38 @@
apiVersion: batch/v1
kind: Job
metadata:
name: rsync-glacier-job
namespace: backup
spec:
backoffLimit: 6
template:
spec:
containers:
- command:
- /bin/sh
- /config/rsync.sh
image: alpine
imagePullPolicy: Always
name: rsync-glacier
volumeMounts:
- name: glacier-backup
mountPath: /destination
- name: ssd
mountPath: /source
- mountPath: /config
name: scripts
restartPolicy: Never
terminationGracePeriodSeconds: 30
volumes:
- name: ssd
hostPath:
path: /ssd/
type: Directory
- name: glacier-backup
persistentVolumeClaim:
claimName: openmediavault-backup
- configMap:
defaultMode: 365
name: rsync-scripts
name: scripts
ttlSecondsAfterFinished: 100
+31
View File
@@ -0,0 +1,31 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: synology-backup
namespace: backup
annotations:
fileType: Backup
spec:
storageClassName: nfs-storage-infrequentaccess
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: openmediavault-backup
namespace: backup
annotations:
fileType: Backup
spec:
storageClassName: nfs-storage-glacier
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
@@ -0,0 +1,17 @@
apiVersion: v1
data:
rsync.sh: |
#!/usr/bin/env bash
#sleep 3600
apk update
apk add rsync
chown -R pi-ux-ce:pi-ux-ce /source/Backup
chown -R pi-ux-ce:pi-ux-ce /source/Image
rsync -avvt /source/Backup /destination
rsync -avvt /source/Image /destination
kind: ConfigMap
metadata:
creationTimestamp: null
name: rsync-scripts
namespace: backup
+38
View File
@@ -0,0 +1,38 @@
apiVersion: batch/v1
kind: Job
metadata:
name: rsync-synology-job
namespace: backup
spec:
backoffLimit: 6
template:
spec:
containers:
- command:
- /bin/sh
- /config/rsync.sh
image: alpine
imagePullPolicy: Always
name: rsync-synology
volumeMounts:
- name: synology-backup
mountPath: /destination
- name: ssd
mountPath: /source
- mountPath: /config
name: scripts
restartPolicy: Never
terminationGracePeriodSeconds: 30
volumes:
- name: ssd
hostPath:
path: /ssd/
type: Directory
- name: synology-backup
persistentVolumeClaim:
claimName: synology-backup
- configMap:
defaultMode: 365
name: rsync-scripts
name: scripts
ttlSecondsAfterFinished: 100
+1 -4
View File
@@ -5,9 +5,6 @@ data:
BW_PASSWORD: V2luc3RvbkNodXJjaGlsbGlzMTAwJWhhbmRzb21l BW_PASSWORD: V2luc3RvbkNodXJjaGlsbGlzMTAwJWhhbmRzb21l
kind: Secret kind: Secret
metadata: metadata:
creationTimestamp: "2024-10-29T14:50:23Z" creationTimestamp: null
name: bitwarden-credentials name: bitwarden-credentials
namespace: bwbackup namespace: bwbackup
resourceVersion: "59808090"
uid: 7b213bf5-9143-4d4d-9987-07ec41e2caf2
type: Opaque
+13
View File
@@ -0,0 +1,13 @@
apiVersion: v1
data:
BW_CLIENTID: dXNlci43MGVmNGYxNi1kM2MwLTRmYWItYWI3OC1hZjg5MDEwNmE2ZDk=
BW_CLIENTSECRET: UlJZVGd3R0pUSjlHVDQwc3dZTklobzlrNUVYYTJv
BW_PASSWORD: V2luc3RvbkNodXJjaGlsbGlzMTAwJWhhbmRzb21l
kind: Secret
metadata:
creationTimestamp: "2024-10-29T14:50:23Z"
name: bitwarden-credentials
namespace: bwbackup
resourceVersion: "59808090"
uid: 7b213bf5-9143-4d4d-9987-07ec41e2caf2
type: Opaque
-26
View File
@@ -1,26 +0,0 @@
FROM debian
WORKDIR /usr/src/app
#COPY requirements.txt ./
#RUN pip install --no-cache-dir -r requirements.txt
RUN apt -y update
RUN apt -y update && apt install -y curl unzip libsecret-1-0 jq
RUN export VER=$(curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/bitwarden/clients/releases | jq -r .[4].name | sed 's:.*v::') && \
curl -LO "https://github.com/bitwarden/clients/releases/download/cli-v{$VER}/bw-linux-{$VER}.zip" \
&& unzip bw-linux-*.zip && chmod +x ./bw
RUN rm bw-linux-*.zip
RUN mv /bw /usr/local/bin
RUN bw --version
#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