[DO-560] Add pod template for avrolite build (#35)
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/35 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
9d2903c86a
commit
2c35b29f7f
@@ -255,6 +255,31 @@ Object tavroLinuxTemplateQT_5_15 = """
|
||||
- name: ${env.JENKINS_K8S_HARBOR_SECRET}
|
||||
"""
|
||||
|
||||
Object avroliteLinuxTemplate = """
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
spec:
|
||||
containers:
|
||||
- name: linux
|
||||
image: ${env.JENKINS_DOCKER_REGISTRY}/webengine/webengine-build-linux:1.4
|
||||
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}
|
||||
"""
|
||||
|
||||
Object flatpakTemplate = """
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
@@ -300,6 +325,8 @@ Object flatpakTemplate = """
|
||||
return tavroLinuxTemplate
|
||||
case 'tavroLinux_qt_5_15':
|
||||
return tavroLinuxTemplateQT_5_15
|
||||
case 'avroliteLinux':
|
||||
return avroliteLinuxTemplate
|
||||
case 'flatpak':
|
||||
return flatpakTemplate
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user