-
Notifications
You must be signed in to change notification settings - Fork 8
/
go-builder.yaml
61 lines (61 loc) · 1.62 KB
/
go-builder.yaml
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
apiVersion: v1
kind: PodTemplate
metadata:
name: go-builder
namespace: kubesphere-devops-worker
labels:
jenkins.agent.pod: 'true'
annotations:
jenkins.agent.labels: "go-builder go"
inherit.from: "base"
devops.kubesphere.io/displayNameEN: 'Golang builder'
devops.kubesphere.io/descriptionEN: 'Golang builder'
template:
metadata:
name: go-builder
spec:
volumes:
- name: docker
hostPath:
path: /var/run/docker.sock
- name: gocache
hostPath:
path: /var/data/jenkins_go_cache
- name: sonarcache
hostPath:
path: /var/data/jenkins_sonar_cache
containers:
- name: snyk
image: snyk/snyk:golang-1.17
command: ["cat"]
args: [""]
volumeMounts:
- name: docker
mountPath: /var/run/docker.sock
- name: gocache
mountPath: /home/jenkins/go/pkg
- name: golangci
image: golangci/golangci-lint:v1.49.0
command: ["cat"]
args: [""]
volumeMounts:
- name: docker
mountPath: /var/run/docker.sock
- name: go
image: golang:1.17.0
command: ["cat"]
args: [""]
volumeMounts:
- name: docker
mountPath: /var/run/docker.sock
- name: gocache
mountPath: /home/jenkins/go/pkg
- name: sonarcache
mountPath: /root/.sonar/cache
- name: skywalking-eyes
image: apache/skywalking-eyes:0.4.0
command: ["cat"]
args: [""]
volumeMounts:
- name: docker
mountPath: /var/run/docker.sock