Add volume mounts for storing artifacts

This commit is contained in:
Danny Bessems 2024-06-07 21:01:42 +10:00
parent dc8c4e74a1
commit d8dd1c19d5
4 changed files with 42 additions and 0 deletions

View File

@ -32,6 +32,9 @@ spec:
- name: runner-data
persistentVolumeClaim:
claimName: act-runner-dind-rootless
- name: flexvolsmb-runner-output
persistentVolumeClaim:
claimName: flexvolsmb-runner-output
securityContext:
fsGroup: 1000
containers:
@ -64,3 +67,5 @@ spec:
- name: runner-config
mountPath: /opt/act/config.yml
subPath: dind-rootless-config.yml
- name: flexvolsmb-runner-output
mountPath: /output

View File

@ -32,6 +32,9 @@ spec:
- name: runner-data
persistentVolumeClaim:
claimName: act-runner-dind
- name: flexvolsmb-runner-output
persistentVolumeClaim:
claimName: flexvolsmb-runner-output
containers:
- name: runner
image: gitea/act_runner:nightly
@ -62,6 +65,8 @@ spec:
mountPath: /certs
- name: runner-data
mountPath: /data
- name: flexvolsmb-runner-output
mountPath: /output
- name: daemon
image: docker:26.1-dind
args:
@ -74,3 +79,5 @@ spec:
volumeMounts:
- name: docker-certs
mountPath: /certs
- name: flexvolsmb-runner-output
mountPath: /output

View File

@ -0,0 +1,18 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-runner-output
spec:
capacity:
storage: 50Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-runner-output
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,iocharset=utf8
server: 192.168.154.225
share: /K3s.Volumes/lighttpd/websites/sn.itch.fyi/Repository/rel

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-runner-output
namespace: gitea
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-runner-output
resources:
requests:
storage: 50Gi