forked from netbox-community/netbox
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jenkins
72 lines (69 loc) · 1.5 KB
/
.jenkins
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env groovy
// Include this shared CI repository to load script helpers and libraries.
library identifier: '[email protected]', retriever: modernSCM([
$class: 'GitSCMSource',
remote: 'https://github.com/vapor-ware/ci-shared.git',
credentialsId: 'vio-bot-gh',
])
pythonPipeline([
'image': 'docker.io/vaporio/netbox',
'pythonVersion': '3.7',
'skipDocs': true,
'skipLint': true,
'skipUnitTest': true,
'skipIntegrationTest': true,
'skipPrivateRepo': true,
'skipClair': true,
'podTemplate': """
apiVersion: v1
kind: Pod
spec:
imagePullSecrets:
- name: dockerhub-vaporvecrobot
containers:
- name: python
image: docker.io/vaporio/jenkins-agent-python37:master
imagePullPolicy: Always
command:
- cat
tty: true
resources:
requests:
memory: 1Gi
cpu: 500m
- name: deploy
image: docker.io/vaporio/deployment-tools:latest
imagePullPolicy: Always
command:
- cat
tty: true
resources:
requests:
memory: 512Mi
cpu: 250m
- name: postgres
image: postgres:11
env:
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_PASSWORD
value: 12345
resources:
requests:
memory: 256Mi
cpu: 250m
- name: redis
image: redis:5
command:
- redis-server
args:
- --appendonly yes
- --requirepass 12345
resources:
requests:
memory: 128Mi
cpu: 250m
imagePullSecrets:
- name: dockerhub-vaporvecrobot
""".stripIndent(),
])