forked from uber-archive/makisu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub-job-template.yaml
41 lines (40 loc) · 1010 Bytes
/
github-job-template.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
apiVersion: batch/v1
kind: Job
metadata:
name: imagebuilder-github
spec:
template:
spec:
restartPolicy: Never
initContainers:
- name: provisioner
image: alpine/git
args:
- clone
- https://github.com/<your repo>
- /makisu-context
volumeMounts:
- name: context
mountPath: /makisu-context
containers:
- name: makisu
image: gcr.io/uber-container-tools/makisu:latest
imagePullPolicy: IfNotPresent
args:
- build
- --push=gcr.io
- --modifyfs=true
- -t=<your image tag>
- --registry-config=/registry-config/registry.yaml
- /makisu-context
volumeMounts:
- name: context
mountPath: /makisu-context
- name: registry-config
mountPath: /registry-config
volumes:
- name: context
emptyDir: {}
- name: registry-config
secret:
secretName: docker-registry-config