[DO-1088] Add pod template for flatpak build (#32)
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/32 Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
committed by
Aleksandr Vodyanov
parent
3dd65f1651
commit
1d586ac4ca
@@ -255,6 +255,31 @@ Object tavroLinuxTemplateQT_5_15 = """
|
||||
- name: ${env.JENKINS_K8S_HARBOR_SECRET}
|
||||
"""
|
||||
|
||||
Object flatpakTemplate = """
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
spec:
|
||||
containers:
|
||||
- name: linux
|
||||
image: ${env.JENKINS_DOCKER_REGISTRY}/all/all-flatpak-build:org-kde-5-15-23-04
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
command:
|
||||
- sleep
|
||||
args:
|
||||
- 99d
|
||||
resources:
|
||||
limits:
|
||||
cpu: 15
|
||||
memory: 32Gi
|
||||
requests:
|
||||
cpu: 15
|
||||
memory: 32Gi
|
||||
imagePullSecrets:
|
||||
- name: ${env.JENKINS_K8S_HARBOR_SECRET}
|
||||
"""
|
||||
|
||||
switch (podTemplateName) {
|
||||
case 'alpine':
|
||||
return alpineTemplate
|
||||
@@ -274,5 +299,7 @@ Object tavroLinuxTemplateQT_5_15 = """
|
||||
return tavroLinuxTemplate
|
||||
case 'tavroLinux_qt_5_15':
|
||||
return tavroLinuxTemplateQT_5_15
|
||||
case 'flatpak':
|
||||
return flatpakTemplate
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user